musl: use if for ldd install

This commit is contained in:
Ella Stanforth 2022-04-21 20:37:18 +00:00
parent 0651c95066
commit ac48f1b27c

View file

@ -38,8 +38,10 @@ package() {
rm $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
[ -z "$FOR_CROSS" ] && install -d $pkgdir/$PREFIX/bin
[ -z "$FOR_CROSS" ] && ln -sr $pkgdir/lib/ld-musl-$ARCH.so.1 $pkgdir/$PREFIX/bin/ldd
if [ -z "$FOR_CROSS" ]; then
install -d $pkgdir/$PREFIX/bin
ln -sr $pkgdir/lib/ld-musl-$ARCH.so.1 $pkgdir/$PREFIX/bin/ldd
fi
}
backup() {