nuttx/libs/libm
Alan Carvalho de Assis c027e7c3e4 tools: fix stale archive members surviving a Kconfig-driven CSRCS change
During the Toybox port to NuttX, Claude noticed that changes in the
menuconfig weren't taking affect. This issue exists for a long time on
NuttX, in fact BayLibre's presentation from 2017 make jokes about our
building system not been reliable:
https://www.youtube.com/watch?v=XUJK2htXxKw&t=320s

Stale archive members from $(AR)'s additive-only behavior can linger
after Kconfig toggles change which files provide a symbol, causing dead
weight or "multiple definition" link errors on incremental builds.
Fixed by splitting ARCHIVE into two macros: ARCHIVE keeps the original
additive behavior for apps/libapps.a, which many independent
subdirectories contribute to across a build, while the new
ARCHIVE_REBUILD deletes then archives for the far more common case
of a single Makefile building its own self-contained $(OBJS)
- all 39 such call sites now use it.

Assisted-By: Claude Sonnet 5
Signed-off-by: Alan C. Assis <acassis@gmail.com>
2026-07-28 21:26:03 -03:00
..
libm libs/libm: correct implementation of truncl if long double is double 2026-07-02 09:02:21 -03:00
libmcs style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
newlib libm/newlib: Include fenv sources for all ARCHs and extend x86 includes 2025-11-30 20:43:58 +08:00
openlibm libm: fix warning maybe-uninitialized 2026-01-19 23:26:14 +08:00
.gitignore esp32: Use newlib-esp32 2023-09-14 19:33:50 +08:00
CMakeLists.txt libs/libm: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Kconfig libs/libm: fix typo in Kconfig 2025-12-09 18:03:10 +08:00
libm.csv nuttx: resolve various 'FAR' and 'CODE' issues 2024-08-26 10:21:03 +08:00
Makefile tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 21:26:03 -03:00