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,8 +12,6 @@ fetch() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
} }
build() {
cd $pkgname-$pkgver
if [ -z "$FOR_CROSS" ]; then if [ -z "$FOR_CROSS" ]; then
PREFIX=/usr PREFIX=/usr
@ -22,6 +20,10 @@ build() {
fi fi
build() {
cd $pkgname-$pkgver
CC=$(pwd)/../$ARCH-linux-musl-cc ./configure \ CC=$(pwd)/../$ARCH-linux-musl-cc ./configure \
--prefix=$PREFIX \ --prefix=$PREFIX \
--target=$TRIPLE --target=$TRIPLE
@ -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() {