Просмотр исходного кода

464xlat: 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 <[email protected]>
Hauke Mehrtens 3 дней назад
Родитель
Сommit
2ca7c2b846

+ 1 - 0
package/network/ipv6/464xlat/Makefile

@@ -25,6 +25,7 @@ define Build/Compile
 	$(MAKE) -C $(PKG_BUILD_DIR) \
 		CC="$(TARGET_CC)" \
 		CFLAGS="$(TARGET_CFLAGS) -Wall" \
+		CPPFLAGS="$(TARGET_CPPFLAGS)" \
 		LDFLAGS="$(TARGET_LDFLAGS)"
 endef
 

+ 1 - 1
package/network/ipv6/464xlat/src/Makefile

@@ -1,7 +1,7 @@
 all: 464xlatcfg
 
 464xlatcfg: 464xlatcfg.c
-	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $<
 
 clean:
 	rm -f 464xlatcfg