libhugetlbfs: Always use ligcc for compiler runtime with clang on x86

glibc objects here expect libgcc to be linked in sadly compiler-rt does
not provide all the needed function implementations e.g. __unordtf2
__letf2, __multf3, __addtf3 needed for 128 bit data types

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-07-19 09:52:03 -07:00
parent ee88180afe
commit 458b297233
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -44,6 +44,9 @@ CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0
export HUGETLB_LDSCRIPT_PATH = "${S}/ldscripts"
LDFLAGS += "-B${S}"
# glibc objects have missing symbols from libgcc that compiler-rt does not provide
# /usr/src/debug/glibc/2.41+git/stdio-common/../stdio-common/printf_fphex.c:123:(.text+0x77): undefined reference to `__unordtf2'
LDFLAGS:append:libc-glibc:toolchain-clang:x86 = " --rtlib=libgcc --unwindlib=libgcc"
inherit autotools-brokensep