[openwrt/openwrt] prereq-build: add extra check for elfutils required header
LEDE Commits
lede-commits at lists.infradead.org
Mon Jan 9 12:25:12 PST 2023
ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/36bc306ae61133a4e7907f0648b8cf8ad8587619
commit 36bc306ae61133a4e7907f0648b8cf8ad8587619
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Mon Jan 9 14:24:49 2023 +0100
prereq-build: add extra check for elfutils required header
While testing tools build on an alpine image it was found that with musl
libc some header are missing for elfutils tool.
Add extra prereq-build check to make sure these header are present in
the system to correctly compile host tools.
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
include/prereq-build.mk | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index 7959890eb5..7b345ebbaa 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -204,6 +204,18 @@ $(eval $(call SetupHostCommand,which,Please install 'which', \
/bin/which which, \
which which))
+$(eval $(call RequireCHeader,argp.h, \
+ Missing argp.h Please install the argp-standalone package if musl libc))
+
+$(eval $(call RequireCHeader,fts.h, \
+ Missing fts.h Please install the musl-fts-dev package if musl libc))
+
+$(eval $(call RequireCHeader,obstack.h, \
+ Missing obstack.h Please install the musl-obstack-dev package if musl libc))
+
+$(eval $(call RequireCHeader,libintl.h, \
+ Missing libintl.h Please install the musl-libintl package if musl libc))
+
$(STAGING_DIR_HOST)/bin/mkhash: $(SCRIPT_DIR)/mkhash.c
mkdir -p $(dir $@)
$(CC) -O2 -I$(TOPDIR)/tools/include -o $@ $<
More information about the lede-commits
mailing list