switch ld.so and libc.so
This commit is contained in:
parent
b6dc8fca26
commit
be930b1161
1 changed files with 11 additions and 6 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue