aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2019-01-25 00:40:19 +0000
committerBen Hutchings <ben@decadent.org.uk>2019-01-25 02:37:55 +0000
commit81b7c464c5db568edf894bacfc9bee2cec837367 (patch)
tree6220148e603e25c83dc6921cec4bcb51e0c5fcc5
parent534a04d85defc627b031906d27cd9d09a913adc4 (diff)
downloadklibc-81b7c464c5db568edf894bacfc9bee2cec837367.tar.gz
[klibc] Fix errlist.c generation in out-of-tree build
Kbuild expands every -I in the compiler options so that in an out-of-tree build both the source directory and corresponding object directory are on the include path. We currently pass $(KLIBCCPPFLAGS) to makeerrlist.pl, which is not expanded, so in an out-of-tree buld it only looks in the object directories and does not find linux/errno.h. Use the flags macro to expand $(KLIBCCPPFLAGS). Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--usr/klibc/Kbuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
index 9efbb4e788684a..526442dc0ba432 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -107,7 +107,8 @@ SOLIBHASH = $(shell cat $(SOLIB).hash)
# Readable errormessages extracted from src..
targets += errlist.c
quiet_cmd_errlist = GEN $@
- cmd_errlist = $(PERL) $< $(KLIBCCPPFLAGS) -errlist > $@ || rm -f $@
+ cmd_errlist = $(PERL) $< $(call flags,KLIBCCPPFLAGS) -errlist > $@ \
+ || rm -f $@
$(obj)/errlist.c: $(srctree)/$(src)/makeerrlist.pl
$(call cmd,errlist)