[openwrt/openwrt] binutils: add CPPFLAGS
LEDE Commits
lede-commits at lists.infradead.org
Tue Feb 17 13:32:07 PST 2026
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/370af1aa65c670527227ef59ceb1193bc9a98b2c
commit 370af1aa65c670527227ef59ceb1193bc9a98b2c
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>
(cherry picked from commit 35939e4db93975c54ec002e6820f889906e6fcac)
---
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