cross-powerpc64le-linux-gnu: clean up libdir handling

This commit is contained in:
q66 2020-12-23 23:54:06 +01:00
parent ca733a57af
commit f9c5ed9a9e

View file

@ -195,7 +195,7 @@ _glibc_build() {
[ ! -d glibc-build ] && mkdir 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_c_cleanup=yes" >> config.cache
@ -206,7 +206,7 @@ _glibc_build() {
export CFLAGS="-O2 -pipe"
_args="--prefix=/usr"
_args+=" --libdir=/usr/lib"
_args+=" --libdir=/usr/lib64"
_args+=" --host=${_triplet}"
_args+=" --with-headers=${_sysroot}/usr/include"
_args+=" --config-cache"
@ -294,6 +294,8 @@ do_build() {
ln -sfr ${_sysroot}/usr/${f} ${_sysroot}/${f}
fi
done
ln -sf lib ${_sysroot}/usr/lib64
ln -sf usr/lib ${_sysroot}/lib64
_binutils_build
_gcc_bootstrap
@ -313,10 +315,8 @@ do_install() {
${DESTDIR}/${_sysroot}/${f}
fi
done
mkdir -p ${DESTDIR}/${_sysroot}/usr/lib
ln -sf lib ${DESTDIR}/${_sysroot}/usr/lib64
ln -sf usr/lib ${DESTDIR}/${_sysroot}/lib64
ln -sf usr/lib ${DESTDIR}/${_sysroot}/lib
# install linux API headers
cd ${wrksrc}/linux-${_linux_version}