[openwrt/openwrt] 6rd: add CPPFLAGS

LEDE Commits lede-commits at lists.infradead.org
Tue Feb 17 13:27:47 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/b497c3f68f294df5111715a1465a204c12e38f05

commit b497c3f68f294df5111715a1465a204c12e38f05
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Mon Feb 16 01:47:50 2026 +0100

    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 at hauke-m.de>
---
 package/network/ipv6/6rd/Makefile     | 1 +
 package/network/ipv6/6rd/src/Makefile | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

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




More information about the lede-commits mailing list