]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
binutils: add CPPFLAGS
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 16 Feb 2026 23:26:30 +0000 (00:26 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 17 Feb 2026 21:30:17 +0000 (22:30 +0100)
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 35939e4db93975c54ec002e6820f889906e6fcac)

package/devel/binutils/Makefile

index 4ccea863387986c6830e93932a4ebc45efc8f999..5f906b1ede634a5696eb79326cb68d9378b1b068 100644 (file)
@@ -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 \