hcxdumptool: pass TARGET_LDFLAGS and restore -std=gnu99

Command-line CFLAGS overrides upstream's CFLAGS += -std=gnu99.
Pass TARGET_LDFLAGS for OpenWrt PIE/RELRO, and keep -lpcap which that
override would otherwise drop.

Signed-off-by: Atanas Vladimirov <vladimirov.atanas@gmail.com>
This commit is contained in:
Atanas Vladimirov authored and Hannu Nyman committed 2026-09-14 07:14:47 +03:00
1 parent 18a4b21bde
commit fecb5f2cba
1 file changed
+2 -1
+2 -1
View File
@@ -41,7 +41,8 @@ endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/ \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
LDFLAGS="$(TARGET_LDFLAGS) -lpcap" \
hcxdumptool
endef