diff mbox series

[meta-oe,1/7] ostree: Always use libgcc for runtime with clang on x86

Message ID 20250721040030.641212-1-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,1/7] ostree: Always use libgcc for runtime with clang on x86 | expand

Commit Message

Khem Raj July 21, 2025, 4 a.m. UTC
compiler-rt does not have 128-bit int support for 32bit x86

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-extended/ostree/ostree_2024.10.bb | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/ostree/ostree_2024.10.bb b/meta-oe/recipes-extended/ostree/ostree_2024.10.bb
index c33624987a..8d3b1cd32e 100644
--- a/meta-oe/recipes-extended/ostree/ostree_2024.10.bb
+++ b/meta-oe/recipes-extended/ostree/ostree_2024.10.bb
@@ -118,6 +118,9 @@  SYSROOT_DIR = "${STAGING_DIR_TARGET}"
 SYSROOT_DIR:class-native = "${STAGING_DIR_NATIVE}"
 do_configure[vardeps] += "SYSROOT_DIR"
 
+# i686-yoe-linux-ld.lld: error: undefined symbol: __unordtf2
+LDFLAGS:append:libc-glibc:toolchain-clang:x86 = " --rtlib=libgcc --unwindlib=libgcc"
+
 do_configure:prepend() {
     # this reflects what autogen.sh does, but the OE wrappers for autoreconf
     # allow it to work without the other gyrations which exist there