Browse Source

musl: moved postinstall adjustments into dedicated musl_postinstall()

stable/0.6
Christian Wiese 11 years ago
parent
commit
f25cca6cc5
  1. 21
      base/musl/musl.conf

21
base/musl/musl.conf

@ -29,20 +29,25 @@ if atstage toolchain; then
makeinstopt="ARCH=$musl_arch" makeinstopt="ARCH=$musl_arch"
fi fi
musl_postinstall() {
# create a libc.so symlink to avoid libtool's attempt linking shared
# libs against libc.a in certain cases
ln -vsf $( relative_path $root$slibdir/libc.so $root/$prefix$libdir/libc.so ) \
$root/$prefix$libdir/libc.so
# create a symlink from ld-musl-$musl_arch.so to ldd # if the dynlinker
# was started as "ldd" it will print DSO information
ln -vsf $( relative_path $root$slibdir/ld-musl-$musl_arch.so.1 $root$bindir/ldd ) \
$root$bindir/ldd
}
# if musl is default libc # if musl is default libc
if [ "$SDECFG_LIBC" == "musl" ]; then if [ "$SDECFG_LIBC" == "musl" ]; then
# disable gcc wrapper script # disable gcc wrapper script
var_append extraconfopt ' ' "--disable-gcc-wrapper" var_append extraconfopt ' ' "--disable-gcc-wrapper"
if ! atstage toolchain; then if ! atstage toolchain; then
# create a libc.so symlink to avoid libtool's attempt linking hook_add postinstall 5 'musl_postinstall'
# shared libs against libc.a in certain cases
hook_add postinstall 5 'ln -vsf $( relative_path $root$slibdir/libc.so $root/$prefix$libdir/libc.so ) $root/$prefix$libdir/libc.so'
# create a symlink from ld-musl-$musl_arch.so to ldd
# if the dynlinker was started as "ldd" it will print
# DSO information
hook_add postinstall 5 'ln -vsf $( relative_path $root$slibdir/ld-musl-$musl_arch.so.1 $root$bindir/ldd ) $root$bindir/ldd'
fi fi
fi fi

Loading…
Cancel
Save