summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens2026-02-16 23:26:30 +0000
committerHauke Mehrtens2026-02-17 21:16:58 +0000
commit35939e4db93975c54ec002e6820f889906e6fcac (patch)
tree3ce4240ff68a443a8c2f12dadbc51f7df3022549
parentfc109d1df0522564ba48658e26e0552d301743c7 (diff)
downloadopenwrt-35939e4db93975c54ec002e6820f889906e6fcac.tar.gz
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@hauke-m.de>
-rw-r--r--package/devel/binutils/Makefile3
1 files changed, 3 insertions, 0 deletions
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 \