Displaying 2 results from an estimated 2 matches for "9efbb4e".
Did you mean:
9ef9b48e
2019 Jan 25
0
[klibc:master] Fix errlist.c generation in out-of-tree build
...he object
directories and does not find linux/errno.h. Use the flags macro to
expand $(KLIBCCPPFLAGS).
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/klibc/Kbuild | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
index 9efbb4e..526442d 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...
2019 Jan 20
0
[klibc:master] Build and install shared binaries only if KLIBCSHAREDFLAGS is defined
...run-init/Kbuild
+++ b/usr/kinit/run-init/Kbuild
@@ -31,4 +31,8 @@ shared/run-init-lib := ../lib.a
clean-dirs := static shared
# install binary
+ifdef KLIBCSHAREDFLAGS
install-y := $(shared-y)
+else
+install-y := $(static-y)
+endif
diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
index b19f3ab..9efbb4e 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -91,7 +91,10 @@ SOHASH := klibc.so
CRT0 := arch/$(KLIBCARCHDIR)/crt0.o
INTERP_O := interp.o
-always := $(LIBC) $(SOLIB) $(SOHASH) $(INTERP_O)
+always := $(LIBC)
+ifdef KLIBCSHAREDFLAGS
+always += $(SOLIB) $(SOHASH) $(INTERP_O)...