[openwrt/openwrt] binutils: add CPPFLAGS

LEDE Commits lede-commits at lists.infradead.org
Tue Feb 17 13:27:44 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/35939e4db93975c54ec002e6820f889906e6fcac

commit 35939e4db93975c54ec002e6820f889906e6fcac
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Tue Feb 17 00:26:30 2026 +0100

    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 <hauke at hauke-m.de>
---
 package/devel/binutils/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/devel/binutils/Makefile b/package/devel/binutils/Makefile
index 4ccea86338..5f906b1ede 100644
--- a/package/devel/binutils/Makefile
+++ b/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 \




More information about the lede-commits mailing list