On Tue, May 19, 2026 at 12:25 AM Hemanth Kumar M D via lists.openembedded.org <[email protected]> wrote:
> From: Hemanth Kumar M D <[email protected]> > > GCC 16 introduced -flink-libatomic which automatically injects > -latomic_asneeded into link commands via LINK_LIBATOMIC_SPEC. > When glibc is built with a GCC 16 cross-compiler, the compiler > would attempt to link against libatomic which does not exist yet > at this stage.(libatomic is built later as part of gcc-runtime) > > Link: > https://github.com/gcc-mirror/gcc/commit/e63cf4b130b86dd7dde1bf499d3d40faca10ea2e > > Signed-off-by: Hemanth Kumar M D <[email protected]> > --- > meta/recipes-core/glibc/glibc.inc | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/meta/recipes-core/glibc/glibc.inc > b/meta/recipes-core/glibc/glibc.inc > index dae087d53f..751cc0c572 100644 > --- a/meta/recipes-core/glibc/glibc.inc > +++ b/meta/recipes-core/glibc/glibc.inc > @@ -46,6 +46,9 @@ EXTRA_OEMAKE += "SHELL=/bin/bash" > # bash but it can be configured by setting KSHELL Makefile variable > EXTRA_OEMAKE += "KSHELL=/bin/sh" > > +TARGET_CC_ARCH += "-fno-link-libatomic" > +SDK_CC_ARCH += "-fno-link-libatomic" > This might be better controlled with toolchain-gcc override. > + > do_configure:prepend() { > sed -e "s#/bin/bash#/bin/sh#" -i ${S}/elf/ldd.bash.in > } > -- > 2.49.0 > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#237558): https://lists.openembedded.org/g/openembedded-core/message/237558 Mute This Topic: https://lists.openembedded.org/mt/119387074/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
