Browse Source

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.
stable/0.6
Christian Wiese 11 years ago
parent
commit
3980d4a0e6
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      base/musl/musl.conf

+ 5
- 1
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"

Loading…
Cancel
Save