From: Atanas Vladimirov Date: Mon, 7 Sep 2026 08:04:22 +0000 (+0300) Subject: hcxdumptool: pass TARGET_LDFLAGS and restore -std=gnu99 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=fecb5f2cbad1821296cab1019cabc001d328dfd6;p=openwrt-packages.git 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 --- diff --git a/net/hcxdumptool/Makefile b/net/hcxdumptool/Makefile index 5f428c3fc..2973470a9 100644 --- a/net/hcxdumptool/Makefile +++ b/net/hcxdumptool/Makefile @@ -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