Skip to contentSkip to conversation

ltp: Use bfd linker when lld is distro linker default

PATCH Superseded Khem Raj 1 participant 2 messages Jul 27, 2023

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 ltp: Use bfd linker when lld is distro linker default

---
 meta/recipes-extended/ltp/ltp_20230516.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-extended/ltp/ltp_20230516.bb +1 -0
index e9407d3148e..e4ba3c68724 100644
@@ -41,6 +41,7 @@ inherit autotools-brokensep pkgconfig
 # https://sourceware.org/bugzilla/show_bug.cgi?id=18097
 # https://github.com/linux-test-project/ltp/commit/3fce2064b54843218d085aae326c8f7ecf3a8c41#diff-39268f0855c634ca48c8993fcd2c95b12a65b79e8d9fa5ccd6b0f5a8785c0dd6R36
 LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd', '', d)}"
+LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd', '', d)}"
 
 # After 0002-kvm-use-LD-instead-of-hardcoding-ld.patch
 # https://github.com/linux-test-project/ltp/commit/f94e0ef3b7280f886384703ef9019aaf2f2dfebb
Signature · 1 line
2.41.0
author
#1 lore raw

PATCH 2/2 ffmpeg: Use bfd linker on i386 when lld is distro linker default

---
 meta/recipes-multimedia/ffmpeg/ffmpeg_6.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-multimedia/ffmpeg/ffmpeg_6.0.bb +1 -0
index 181c17d9d68..1d80fd92949 100644
@@ -133,6 +133,7 @@ EXTRA_OECONF:append:powerpc = " --extra-libs=-latomic"
 # ld.gold: internal error in relocate_section, at ../../gold/i386.cc:3684
 
 LDFLAGS:append:x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
+LDFLAGS:append:x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd ', '', d)}"
 
 EXTRA_OEMAKE = "V=1"
 
Signature · 1 line
2.41.0