[meta-oe] fwts: Do not use --as-needed on ppc64

Message ID 20220314164402.521826-1-raj.khem@gmail.com
State New
Headers show
Series [meta-oe] fwts: Do not use --as-needed on ppc64 | expand

Commit Message

Khem Raj March 14, 2022, 4:44 p.m. UTC
This is not seen on non ppc64 hosts

Fixes
build/src/lib/src/.libs/libfwts.so: undefined reference to `fwts_acpica_sem_count_get'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-test/fwts/fwts_22.01.00.bb | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta-oe/recipes-test/fwts/fwts_22.01.00.bb b/meta-oe/recipes-test/fwts/fwts_22.01.00.bb
index f14d7fd8e6..1f2d3e0521 100644
--- a/meta-oe/recipes-test/fwts/fwts_22.01.00.bb
+++ b/meta-oe/recipes-test/fwts/fwts_22.01.00.bb
@@ -23,6 +23,10 @@  inherit autotools bash-completion pkgconfig
 
 LDFLAGS:append:libc-musl = " -lexecinfo"
 
+# We end up linker barfing with undefined symbols on ppc64 but not on other arches
+# surprisingly
+ASNEEDED:powerpc64le = ""
+
 FILES:${PN} += "${libdir}/fwts/lib*${SOLIBS}"
 FILES:${PN}-dev += "${libdir}/fwts/lib*${SOLIBSDEV} ${libdir}/fwts/lib*.la"
 FILES:${PN}-staticdev += "${libdir}/fwts/lib*a"