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"