cross-aarch64-linux-musl: clean up libdir handling

This commit is contained in:
q66 2020-12-23 23:18:33 +01:00
parent fd08f5044a
commit 2e2fc311be

View file

@ -238,6 +238,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
@ -248,7 +250,7 @@ do_build() {
}
do_install() {
for f in include libexec bin sbin; do
for f in include lib libexec bin sbin; do
if [ ! -d ${DESTDIR}/${_sysroot}/usr/${f} ]; then
mkdir -p ${DESTDIR}/${_sysroot}/usr/${f}
fi
@ -257,10 +259,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}