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