[openwrt/openwrt] bzip2: add CPPFLAGS

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


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

commit cd1fda5c8b068f98d38cdbed4342e0608653b2e8
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Mon Feb 16 01:48:09 2026 +0100

    bzip2: add CPPFLAGS
    
    Add the OpenWrt CPPFLAGS to the CFLAGS. bzip2 does not support CPPFLAGS.
    This fixes fortify sources support.
    
    Link: https://github.com/openwrt/openwrt/pull/22056
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/utils/bzip2/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/utils/bzip2/Makefile b/package/utils/bzip2/Makefile
index 7ae089f4f4..01fff14456 100644
--- a/package/utils/bzip2/Makefile
+++ b/package/utils/bzip2/Makefile
@@ -62,7 +62,7 @@ CONFIGURE_ARGS += --prefix=/usr
 
 MAKE_FLAGS += \
 	-f Makefile-libbz2_so \
-	CFLAGS="$(TARGET_CFLAGS)" \
+	CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
 	LDFLAGS="$(TARGET_LDFLAGS)" \
 	all
 
@@ -92,7 +92,7 @@ HOST_CFLAGS += \
 	$(FPIC)
 
 HOST_MAKE_FLAGS+= \
-	CFLAGS="$(HOST_CFLAGS)" \
+	CFLAGS="$(HOST_CFLAGS) $(HOST_CPPFLAGS)" \
 	LDFLAGS="$(HOST_LDFLAGS)" \
 	all
 




More information about the lede-commits mailing list