]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
6rd: add CPPFLAGS
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 16 Feb 2026 00:47:50 +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/6rd/Makefile
package/network/ipv6/6rd/src/Makefile

index 3ab8198ef312de394ac9bbae78ed54818c1b9ef2..d4b65afb23f36fba18039df61db237667e016261 100644 (file)
@@ -35,6 +35,7 @@ define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CC="$(TARGET_CC)" \
                CFLAGS="$(TARGET_CFLAGS) -Wall" \
+               CPPFLAGS="$(TARGET_CPPFLAGS)" \
                LDFLAGS="$(TARGET_LDFLAGS)"
 endef
 
index 2881d435890ddc23027fc6e1df281cf0e038c267..526ffcaeb09207db95fe250e475890d24017634e 100644 (file)
@@ -1,7 +1,7 @@
 all: 6rdcalc
 
 6rdcalc: 6rdcalc.c
-       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+       $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $<
 
 clean:
        rm -f 6rdcalc