Skip to contentSkip to conversation

ply: Demand BFD linker explicitly

PATCH New Khem Raj 1 participant 1 message Jun 12, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 ply: Demand BFD linker explicitly

Default ld on OE could be either gold/bfd/lld, here its assuming ld to ld.bfd which is not right assumption when it really should ask for BFD linker since its relying on its options

see src/ply/Makefile.am

$(LD) -r -b binary -o $(abs_builddir)/self-test.o self-test.sh

---
 meta-oe/recipes-devtools/ply/ply_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-devtools/ply/ply_git.bb +2 -0
index 61a0092c81..c22dcbd12a 100644
@@ -12,6 +12,8 @@ SRCREV = "864fac79116870df1ab7aa21e639578807e41e75"
 
 S = "${WORKDIR}/git"
 
+LD = "${HOST_PREFIX}ld.bfd${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}"
+
 inherit autotools-brokensep
 
 COMPATIBLE_HOST = "(x86_64.*|aarch64.*|arm.*|powerpc)-linux"
Signature · 1 line
2.41.0