From 3980d4a0e6402c0226164035630b54c5b096817c Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 2 Sep 2013 10:27:23 +0200 Subject: [PATCH] musl: fixed to always install libc headers This changes the behavior which was to install headers only at stage 0, which was sufficient to build a proper toolchain and to cross-compile, but as the headers have not been installed at stage 1 we have not header files within the flist of the musl package. Now we are always calling the 'install-headers' target when calling make install, but we need to 'touch' every header file within the sources to be able to install the headers even if already existing in the build sandbox. --- base/musl/musl.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/base/musl/musl.conf b/base/musl/musl.conf index 4e75a809f..6957a420f 100644 --- a/base/musl/musl.conf +++ b/base/musl/musl.conf @@ -21,7 +21,7 @@ if atstage toolchain; then makeopt="ARCH=$musl_arch" var_append makeopt ' ' "include/bits" - makeinstopt="ARCH=$musl_arch install-headers" + makeinstopt="ARCH=$musl_arch" fi # if musl is default libc @@ -29,3 +29,7 @@ if [ "$SDECFG_LIBC" == "musl" ]; then # disable gcc wrapper script var_append extraconfopt ' ' "--disable-gcc-wrapper" fi + +# always install the headers even if already present in the sandbox +hook_add postpatch 9 "touch include/*.h include/*/*.h" +var_append makeinstopt ' ' "install-headers"