diff options
| author | Hauke Mehrtens | 2026-02-16 00:47:50 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2026-02-17 21:30:21 +0000 |
| commit | da0b16367cb3e5bf591e9dab200358bc0a7db004 (patch) | |
| tree | fe90a26d99502d2f9af722299791a3bb70c00dfd | |
| parent | 790aaa5b07c2fb9f0c03e827be7e9c1e026d7d97 (diff) | |
| download | openwrt-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/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 |