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

This commit is contained in:
q66 2020-12-23 23:59:24 +01:00
parent 1bfad41a25
commit 6ad765aa48

View file

@ -6,7 +6,6 @@ _musl_version=1.1.24
_linux_version=4.19 _linux_version=4.19
_triplet=powerpcle-linux-musl _triplet=powerpcle-linux-musl
_fpuflags=
_sysroot="/usr/${_triplet}" _sysroot="/usr/${_triplet}"
pkgname=cross-${_triplet} pkgname=cross-${_triplet}
@ -71,7 +70,6 @@ _binutils_build() {
_args+=" --disable-shared" _args+=" --disable-shared"
_args+=" --with-system-zlib" _args+=" --with-system-zlib"
_args+=" --enable-secureplt" _args+=" --enable-secureplt"
_args+=" ${_fpuflags}"
../binutils-${_binutils_version}/configure ${_args} ../binutils-${_binutils_version}/configure ${_args}
@ -117,8 +115,6 @@ _gcc_bootstrap() {
_args+=" --disable-symvers" _args+=" --disable-symvers"
_args+=" libat_cv_have_ifunc=no" _args+=" libat_cv_have_ifunc=no"
_args+=" --enable-secureplt" _args+=" --enable-secureplt"
_args+=" --with-long-double=64"
_args+=" ${_fpuflags}"
CFLAGS="-O0 -g0" CXXFLAGS="-O0 -g0" \ CFLAGS="-O0 -g0" CXXFLAGS="-O0 -g0" \
../gcc-${_gcc_version}/configure ${_args} ../gcc-${_gcc_version}/configure ${_args}
@ -201,8 +197,6 @@ _gcc_build() {
_args+=" libat_cv_have_ifunc=no" _args+=" libat_cv_have_ifunc=no"
_args+=" --disable-decimal-float" _args+=" --disable-decimal-float"
_args+=" --enable-secureplt" _args+=" --enable-secureplt"
_args+=" --with-long-double=64"
_args+=" ${_fpuflags}"
../gcc-${_gcc_version}/configure ${_args} ../gcc-${_gcc_version}/configure ${_args}
@ -225,6 +219,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/lib32
ln -sf usr/lib ${_sysroot}/lib32
_binutils_build _binutils_build
_gcc_bootstrap _gcc_bootstrap
@ -243,6 +239,8 @@ do_install() {
${DESTDIR}/${_sysroot}/${f} ${DESTDIR}/${_sysroot}/${f}
fi fi
done done
ln -sf lib ${DESTDIR}/${_sysroot}/usr/lib32
ln -sf usr/lib ${DESTDIR}/${_sysroot}/lib32
# install linux API headers # install linux API headers
cd ${wrksrc}/linux-${_linux_version} cd ${wrksrc}/linux-${_linux_version}