diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-07-19 09:52:03 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-07-20 21:21:31 -0700 |
commit | 458b297233a97b466ff75088dea7b77157aced3e (patch) | |
tree | 3db398100895950790e9c706047bfe17991fa048 | |
parent | ee88180afed0a68688ffb3a11631b76fc07841d7 (diff) | |
download | meta-openembedded-458b297233a97b466ff75088dea7b77157aced3e.tar.gz |
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>
-rw-r--r-- | meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb index a43ddf0d53..0546d4b0b5 100644 --- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb +++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb | |||
@@ -44,6 +44,9 @@ CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0 | |||
44 | export HUGETLB_LDSCRIPT_PATH = "${S}/ldscripts" | 44 | export HUGETLB_LDSCRIPT_PATH = "${S}/ldscripts" |
45 | 45 | ||
46 | LDFLAGS += "-B${S}" | 46 | LDFLAGS += "-B${S}" |
47 | # glibc objects have missing symbols from libgcc that compiler-rt does not provide | ||
48 | # /usr/src/debug/glibc/2.41+git/stdio-common/../stdio-common/printf_fphex.c:123:(.text+0x77): undefined reference to `__unordtf2' | ||
49 | LDFLAGS:append:libc-glibc:toolchain-clang:x86 = " --rtlib=libgcc --unwindlib=libgcc" | ||
47 | 50 | ||
48 | inherit autotools-brokensep | 51 | inherit autotools-brokensep |
49 | 52 | ||