diff mbox series

[meta-networking,2/3] net-snmp: Do not pass LDFLAGS to compiler

Message ID 20250719013514.277016-2-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,1/3] safec: Pass Qunused-arguments when using clang | expand

Commit Message

Khem Raj July 19, 2025, 1:35 a.m. UTC
This fixed issues like incompatible hash sections
it was added in 2009 [1], however these errors are
not seen in todays OE builds

On the contrary it regresses build with clang since
it rejects the options which results in some configure
test failures, resulting finally in build/compile failures

arm-yoe-linux-gnueabi-clang: warning: -Wl,-O1: 'linker' input unused [-Wunused-command-line-argument]

[1] https://git.openembedded.org/openembedded/commit/?id=07f750c6382476b799201b5ca47f93a5f7aa7e84

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Jan Luebbe <jlu@pengutronix.de>
---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb
index 6a62304a1c..7c849cf5e7 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb
@@ -46,8 +46,6 @@  PARALLEL_MAKE = ""
 CCACHE = ""
 CLEANBROKEN = "1"
 
-TARGET_CC_ARCH += "${LDFLAGS}"
-
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 systemd', d)} des smux"
 PACKAGECONFIG[des] = "--enable-des, --disable-des"
 PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils"