diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2019-01-25 00:40:19 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-01-25 02:37:55 +0000 |
commit | 81b7c464c5db568edf894bacfc9bee2cec837367 (patch) | |
tree | 6220148e603e25c83dc6921cec4bcb51e0c5fcc5 | |
parent | 534a04d85defc627b031906d27cd9d09a913adc4 (diff) | |
download | klibc-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/Kbuild | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index 9efbb4e788684..526442dc0ba43 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) |