[openwrt/openwrt] prereq-build: limit argp/fts/obstack/libintl.h to Linux OS

LEDE Commits lede-commits at lists.infradead.org
Tue Jan 10 04:07:22 PST 2023


ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/7af1713a29441c47330f9dd1b1f1c9772af5e033

commit 7af1713a29441c47330f9dd1b1f1c9772af5e033
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Mon Jan 9 22:16:26 2023 +0100

    prereq-build: limit argp/fts/obstack/libintl.h to Linux OS
    
    BSD based OS have different fixup and doesn't require these header.
    Limit these Header to Linux based OS.
    
    Fixes: 36bc306ae611 ("prereq-build: add extra check for elfutils required header")
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 include/prereq-build.mk | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index 7b345ebbaa..8fae92ab97 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -204,17 +204,19 @@ $(eval $(call SetupHostCommand,which,Please install 'which', \
 	/bin/which which, \
 	which which))
 
-$(eval $(call RequireCHeader,argp.h, \
+ifeq ($(HOST_OS),Linux)
+  $(eval $(call RequireCHeader,argp.h, \
 	Missing argp.h Please install the argp-standalone package if musl libc))
 
-$(eval $(call RequireCHeader,fts.h, \
+  $(eval $(call RequireCHeader,fts.h, \
 	Missing fts.h Please install the musl-fts-dev package if musl libc))
 
-$(eval $(call RequireCHeader,obstack.h, \
+  $(eval $(call RequireCHeader,obstack.h, \
 	Missing obstack.h Please install the musl-obstack-dev package if musl libc))
 
-$(eval $(call RequireCHeader,libintl.h, \
+  $(eval $(call RequireCHeader,libintl.h, \
 	Missing libintl.h Please install the musl-libintl package if musl libc))
+endif
 
 $(STAGING_DIR_HOST)/bin/mkhash: $(SCRIPT_DIR)/mkhash.c
 	mkdir -p $(dir $@)




More information about the lede-commits mailing list