Browse Source

musl: enhanced build to also puthe the headers in the resulting archive, not only in the sandbox.

tc-work-musl-mess
Nagy Károly Gábriel 8 years ago
parent
commit
83e25dd702
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      base/musl/musl.conf

+ 6
- 5
base/musl/musl.conf

@ -20,14 +20,11 @@ if [ $prefix_auto == 1 ]; then
fi
var_append configprefix ' ' "LDFLAGS=\"$LDFLAGS -Wl,-soname,libc.musl-$musl_arch.so.1\""
var_append extraconfopt ' ' '--host=$arch_build'
var_append extraconfopt ' ' '--enable-debug'
if atstage toolchain; then
confopt="$extraconfopt"
makeopt="ARCH=$musl_arch"
makeinstopt="ARCH=$musl_arch prefix=/usr DESTDIR=$sysroot install-headers"
fi
musl_postinstall() {
@ -77,6 +74,10 @@ if [ "$SDECFG_LIBC" == "musl" ]; then
fi
# always install the headers even if already present in the sandbox
hook_add postpatch 9 "touch include/*.h include/*/*.h arch/$musl_arch/*.h arch/$musl_arch/*/*.h"
var_append makeinstopt ' ' "install-headers"
install_headers() {
touch include/*.h include/*/*.h arch/$musl_arch/*.h arch/$musl_arch/*/*.h arch/generic/*/*.h
$MAKE ARCH=$musl_arch prefix=/usr DESTDIR=$sysroot install-headers
}
hook_add postmake 9 "install_headers"

Loading…
Cancel
Save