net-snmp: Do not pass LDFLAGS to compiler

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>
This commit is contained in:
Khem Raj 2025-07-18 10:53:52 -07:00
parent c324bee29d
commit 1997d3d6c4
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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"