From: Atanas Vladimirov Date: Sun, 6 Sep 2026 07:40:42 +0000 (+0300) Subject: hcxtools: pass TARGET_LDFLAGS and restore -std=gnu99 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=18a4b21bdeac031469063c73c13c1b8aadbcef73;p=openwrt-packages.git hcxtools: pass TARGET_LDFLAGS and restore -std=gnu99 Command-line CFLAGS overrides upstream's CFLAGS += -std=gnu99. Without TARGET_LDFLAGS the tools also skip OpenWrt PIE/RELRO link flags. Signed-off-by: Atanas Vladimirov --- diff --git a/net/hcxtools/Makefile b/net/hcxtools/Makefile index 01cdd1d3d..263b178f4 100644 --- a/net/hcxtools/Makefile +++ b/net/hcxtools/Makefile @@ -38,7 +38,8 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/ \ $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS)" + CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \ + LDFLAGS="$(TARGET_LDFLAGS)" endef define Package/hcxtools/install