Parcourir la source

binutils: 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 il y a 3 jours
Parent
commit
35939e4db9
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      package/devel/binutils/Makefile

+ 3 - 0
package/devel/binutils/Makefile

@@ -93,6 +93,9 @@ CONFIGURE_ARGS += \
 	--without-msgpack \
 	--disable-gprofng
 
+MAKE_VARS+= \
+	CPPFLAGS="$(TARGET_CPPFLAGS)"
+
 define Build/Install
 	$(call Build/Install/Default)
 	$(MAKE) -C $(PKG_BUILD_DIR)/libiberty \