From fecb5f2cbad1821296cab1019cabc001d328dfd6 Mon Sep 17 00:00:00 2001 From: Atanas Vladimirov Date: Mon, 7 Sep 2026 11:04:22 +0300 Subject: [PATCH] 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 --- net/hcxdumptool/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/hcxdumptool/Makefile b/net/hcxdumptool/Makefile index 5f428c3fc8..2973470a97 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