summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens2026-02-16 00:47:50 +0000
committerHauke Mehrtens2026-02-17 21:30:21 +0000
commitda0b16367cb3e5bf591e9dab200358bc0a7db004 (patch)
treefe90a26d99502d2f9af722299791a3bb70c00dfd
parent790aaa5b07c2fb9f0c03e827be7e9c1e026d7d97 (diff)
downloadopenwrt-da0b16367cb3e5bf591e9dab200358bc0a7db004.tar.gz
6rd: add CPPFLAGS
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> (cherry picked from commit b497c3f68f294df5111715a1465a204c12e38f05)
-rw-r--r--package/network/ipv6/6rd/Makefile1
-rw-r--r--package/network/ipv6/6rd/src/Makefile2
2 files changed, 2 insertions, 1 deletions
diff --git a/package/network/ipv6/6rd/Makefile b/package/network/ipv6/6rd/Makefile
index 3ab8198ef3..d4b65afb23 100644
--- a/package/network/ipv6/6rd/Makefile
+++ b/package/network/ipv6/6rd/Makefile
@@ -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
diff --git a/package/network/ipv6/6rd/src/Makefile b/package/network/ipv6/6rd/src/Makefile
index 2881d43589..526ffcaeb0 100644
--- a/package/network/ipv6/6rd/src/Makefile
+++ b/package/network/ipv6/6rd/src/Makefile
@@ -1,7 +1,7 @@
all: 6rdcalc
6rdcalc: 6rdcalc.c
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $<
clean:
rm -f 6rdcalc