nuttx/libs/libxx
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
..
etl libs\libxx: Fix Make style 2026-03-23 18:16:46 -04:00
libcxx libcxx: supports CXX_MINI_LOCALIZATION 2026-01-16 09:41:40 +08:00
libcxxabi libs\libxx: Fix Make style 2026-03-23 18:16:46 -04:00
libminiabi libs\libxx: Fix Make style 2026-03-23 18:16:46 -04:00
libstdc++ libstdc++: Relocate c++config.h from include/ to libstdc++ to preserve upstream integrity 2026-01-27 10:35:58 +08:00
uClibc++ style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
.gitignore add dir ignored since we changed libxx layout 2024-11-17 08:31:08 -03:00
__config_site libxx: fix __config_site for libcxx compile errors 2026-01-20 17:45:48 +08:00
CMakeLists.txt libs: remove not related comments from cmake files 2025-10-11 17:07:51 -04:00
Kconfig libcxx/libstdc++: Add libsupc++.defs to support libsupc++ 2026-01-24 17:33:19 +08:00
Makefile tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 21:26:03 -03:00