]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
464xlat: add CPPFLAGS
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 16 Feb 2026 00:47:01 +0000 (01:47 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 17 Feb 2026 21:16:58 +0000 (22:16 +0100)
Forward the OpenWrt CPPFLAGS to the compile process. This fixes fortify
sources support.

Link: https://github.com/openwrt/openwrt/pull/22056
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/ipv6/464xlat/Makefile
package/network/ipv6/464xlat/src/Makefile

index ab09b1e6ddb3fef8ec84db63c7c84f4da3883644..c7469c1e96d662a61bf0155b333e89e240f0aeae 100644 (file)
@@ -25,6 +25,7 @@ define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CC="$(TARGET_CC)" \
                CFLAGS="$(TARGET_CFLAGS) -Wall" \
+               CPPFLAGS="$(TARGET_CPPFLAGS)" \
                LDFLAGS="$(TARGET_LDFLAGS)"
 endef
 
index 3950a6b1dd2c8e46dacad1a9b2a1b26dd1d4271a..beffe38617a6e76e9eeae0ce688e975433284a9f 100644 (file)
@@ -1,7 +1,7 @@
 all: 464xlatcfg
 
 464xlatcfg: 464xlatcfg.c
-       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+       $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $<
 
 clean:
        rm -f 464xlatcfg