mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
cross-powerpc64-linux-gnu: clean up libdir handling
This commit is contained in:
parent
8076ab54d7
commit
b5b451fb29
1 changed files with 4 additions and 4 deletions
|
@ -195,7 +195,7 @@ _glibc_build() {
|
||||||
[ ! -d glibc-build ] && mkdir glibc-build
|
[ ! -d glibc-build ] && mkdir glibc-build
|
||||||
cd glibc-build
|
cd glibc-build
|
||||||
|
|
||||||
echo "slibdir=/usr/lib" > configparms
|
echo "slibdir=/usr/lib64" > configparms
|
||||||
|
|
||||||
echo "libc_cv_forced_unwind=yes" > config.cache
|
echo "libc_cv_forced_unwind=yes" > config.cache
|
||||||
echo "libc_cv_c_cleanup=yes" >> config.cache
|
echo "libc_cv_c_cleanup=yes" >> config.cache
|
||||||
|
@ -206,7 +206,7 @@ _glibc_build() {
|
||||||
export CFLAGS="-O2 -pipe"
|
export CFLAGS="-O2 -pipe"
|
||||||
|
|
||||||
_args="--prefix=/usr"
|
_args="--prefix=/usr"
|
||||||
_args+=" --libdir=/usr/lib"
|
_args+=" --libdir=/usr/lib64"
|
||||||
_args+=" --host=${_triplet}"
|
_args+=" --host=${_triplet}"
|
||||||
_args+=" --with-headers=${_sysroot}/usr/include"
|
_args+=" --with-headers=${_sysroot}/usr/include"
|
||||||
_args+=" --config-cache"
|
_args+=" --config-cache"
|
||||||
|
@ -294,6 +294,8 @@ do_build() {
|
||||||
ln -sfr ${_sysroot}/usr/${f} ${_sysroot}/${f}
|
ln -sfr ${_sysroot}/usr/${f} ${_sysroot}/${f}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
ln -sf lib ${_sysroot}/usr/lib64
|
||||||
|
ln -sf usr/lib ${_sysroot}/lib64
|
||||||
|
|
||||||
_binutils_build
|
_binutils_build
|
||||||
_gcc_bootstrap
|
_gcc_bootstrap
|
||||||
|
@ -313,10 +315,8 @@ do_install() {
|
||||||
${DESTDIR}/${_sysroot}/${f}
|
${DESTDIR}/${_sysroot}/${f}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
mkdir -p ${DESTDIR}/${_sysroot}/usr/lib
|
|
||||||
ln -sf lib ${DESTDIR}/${_sysroot}/usr/lib64
|
ln -sf lib ${DESTDIR}/${_sysroot}/usr/lib64
|
||||||
ln -sf usr/lib ${DESTDIR}/${_sysroot}/lib64
|
ln -sf usr/lib ${DESTDIR}/${_sysroot}/lib64
|
||||||
ln -sf usr/lib ${DESTDIR}/${_sysroot}/lib
|
|
||||||
|
|
||||||
# install linux API headers
|
# install linux API headers
|
||||||
cd ${wrksrc}/linux-${_linux_version}
|
cd ${wrksrc}/linux-${_linux_version}
|
||||||
|
|
Loading…
Add table
Reference in a new issue