[PATCH] Link static C++ tests against libatomic.a if needed
H.J. Lu
hjl.tools@gmail.com
Mon May 4 02:33:12 GMT 2026
Define cxx-static-link-libatomic to -latomic if DT_NEEDED entries in
libstdc++.so include libatomic.so. Update link-extra-libs-static to
include $(cxx-static-link-libatomic) if -lstdc++ is used.
Tested with sparcv8-linux-gnu-leon3 and sparcv9-linux-gnu using
uild-many-glibcs.py. This fixes BZ #34121.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Link-static-C-tests-against-libatomic.a-if-needed.patch
Type: text/x-patch
Size: 3563 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260504/b2d1f67c/attachment-0001.bin>
More information about the Libc-alpha
mailing list