diff options
| author | Hauke Mehrtens | 2026-02-16 00:47:50 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2026-02-17 21:16:58 +0000 |
| commit | b497c3f68f294df5111715a1465a204c12e38f05 (patch) | |
| tree | fa4411564c51681757d2c0e71dcb7fb21d68b560 | |
| parent | 2ca7c2b84669a885c6fe46a30657b1453abef123 (diff) | |
| download | openwrt-b497c3f68f294df5111715a1465a204c12e38f05.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>
| -rw-r--r-- | package/network/ipv6/6rd/Makefile | 1 | ||||
| -rw-r--r-- | package/network/ipv6/6rd/src/Makefile | 2 |
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 |