switch ld.so and libc.so

This commit is contained in:
Ella Stanforth 2022-04-09 16:07:21 +00:00
parent b6dc8fca26
commit be930b1161

View file

@ -12,15 +12,17 @@ fetch() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
} }
if [ -z "$FOR_CROSS" ]; then
PREFIX=/usr
else
PREFIX=$FOR_CROSS_DIR
fi
build() { build() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
if [ -z "$FOR_CROSS" ]; then
PREFIX=/usr
else
PREFIX=$FOR_CROSS_DIR
fi
CC=$(pwd)/../$ARCH-linux-musl-cc ./configure \ CC=$(pwd)/../$ARCH-linux-musl-cc ./configure \
--prefix=$PREFIX \ --prefix=$PREFIX \
@ -32,6 +34,9 @@ build() {
package() { package() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
bad --gmake gmake DESTDIR=$pkgdir install bad --gmake gmake DESTDIR=$pkgdir install
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
} }
backup() { backup() {