|
|
@ -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" |
|
|
|
|