Skip to contentSkip to conversation

mongodb: Use bfd linker for x86/musl with gcc

PATCH New Khem Raj 1 participant 1 message Jan 31, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 mongodb: Use bfd linker for x86/musl with gcc

---
 .../meta-python/recipes-dbs/mongodb/mongodb_git.bb            | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +4 -0
index 56512a2e2e..253187e33c 100644
@@ -74,6 +74,10 @@ WIREDTIGER ?= "off"
 WIREDTIGER:x86-64 = "on"
 WIREDTIGER:aarch64 = "on"
 
+# ld.gold: fatal error: build/59f4f0dd/mongo/mongod: Structure needs cleaning
+LDFLAGS:append:x86:libc-musl = " -fuse-ld=bfd"
+LDFLAGS:remove:toolchain-clang = "-fuse-ld=bfd"
+
 EXTRA_OESCONS = "PREFIX=${prefix} \
                  DESTDIR=${D} \
                  MAXLINELENGTH='2097152' \
Signature · 1 line
2.39.1