Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use -Wl,--gc-sections when appropriate
Problem: libflux-optparse.so has unresolved jansson symbols on focal. A recent macos portability change dropped the linker option to garbage collect unused sections, resulting in unresolved json_* symbols in libflux-optparse.so from libmissing.la on focal. The change, introduced in #6476, was supposed to set a make variable $ld_gc_sections when that option is available, but the change was incomplete and the variable was never set. Add the missing configure logic. Confirmed: - json_ symbols are no longer unresolved in libflux-optparse.so on focal - macos still builds, and json_ symbols do not appear there Fixes #6496
- Loading branch information