]> git.99rst.org Git - openwrt-packages.git/commitdiff
hcxtools: pass TARGET_LDFLAGS and restore -std=gnu99
authorAtanas Vladimirov <redacted>
Sun, 6 Sep 2026 07:40:42 +0000 (10:40 +0300)
committerHannu Nyman <redacted>
Mon, 14 Sep 2026 04:14:47 +0000 (07:14 +0300)
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 <redacted>
net/hcxtools/Makefile

index 01cdd1d3d0a40f553ef26b588612606118c45360..263b178f48ce8dd7d48544419e64055d24b6f07a 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT