musl: disable wrappers and link ldd

This commit is contained in:
Ella Stanforth 2022-04-21 13:48:06 +00:00
parent 3d8ff233dc
commit 27a0ae453b

View file

@ -26,7 +26,8 @@ build() {
CC=$(pwd)/../$ARCH-linux-musl-cc ./configure \ CC=$(pwd)/../$ARCH-linux-musl-cc ./configure \
--prefix=$PREFIX \ --prefix=$PREFIX \
--target=$TRIPLE --target=$TRIPLE \
--disable-wrapper
bad --gmake gmake bad --gmake gmake
} }
@ -37,6 +38,7 @@ package() {
rm $pkgdir/lib/ld-musl-$ARCH.so.1 rm $pkgdir/lib/ld-musl-$ARCH.so.1
mv $pkgdir/$PREFIX/lib/libc.so $pkgdir/lib/ld-musl-$ARCH.so.1 mv $pkgdir/$PREFIX/lib/libc.so $pkgdir/lib/ld-musl-$ARCH.so.1
ln -sr $pkgdir/lib/ld-musl-$ARCH.so.1 $pkgdir/$PREFIX/lib/libc.so ln -sr $pkgdir/lib/ld-musl-$ARCH.so.1 $pkgdir/$PREFIX/lib/libc.so
ln -sr $pkgdir/lib/ld-musl-$ARCH.so.1 $pkgdir/$PREFIX/bin/ldd
} }
backup() { backup() {