mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user