cross-powerpc64le-linux-gnu: fix sed substitutions and symlinks
This does fixes similar to aarch64, for the same reasons. [ci skip]
This commit is contained in:
parent
263bbfc344
commit
cf05c1c8fe
1 changed files with 13 additions and 6 deletions
|
@ -185,16 +185,19 @@ _glibc_build() {
|
|||
[ ! -d glibc-build ] && mkdir glibc-build
|
||||
cd glibc-build
|
||||
|
||||
echo "slibdir=/usr/lib" > configparms
|
||||
|
||||
echo "libc_cv_forced_unwind=yes" > config.cache
|
||||
echo "libc_cv_c_cleanup=yes" >> config.cache
|
||||
|
||||
export CC="${_triplet}-gcc" LD="${_triplet}-ld" \
|
||||
AS="${_triplet}-as" CPP="${_triplet}-cpp" \
|
||||
NM="${_triplet}-nm"
|
||||
export CFLAGS="-O2 -pipe -Wno-error ${_archflags}"
|
||||
export CFLAGS="-O2 -pipe -Wno-error"
|
||||
|
||||
_args="--host=${_triplet}"
|
||||
_args+=" --prefix=/usr"
|
||||
_args="--prefix=/usr"
|
||||
_args+=" --libdir=/usr/lib"
|
||||
_args+=" --host=${_triplet}"
|
||||
_args+=" --with-headers=${_sysroot}/usr/include"
|
||||
_args+=" --config-cache"
|
||||
_args+=" --enable-obsolete-rpc"
|
||||
|
@ -225,9 +228,9 @@ _gcc_build() {
|
|||
# Make this link to target libs.
|
||||
if [ ! -f .sed_subst_done ]; then
|
||||
sed -e "s, /lib/, ${_sysroot}/lib/,g;s, /usr/lib/, ${_sysroot}/usr/lib/,g" \
|
||||
-i ${_sysroot}/lib/libc.so ${_sysroot}/lib/libpthread.so
|
||||
sed -e "s, /lib64/, ${_sysroot}/lib64/,g;s, /usr/lib/, ${_sysroot}/usr/lib/,g" \
|
||||
-i ${_sysroot}/lib/libc.so ${_sysroot}/lib/libpthread.so
|
||||
-i ${_sysroot}/usr/lib/libc.so
|
||||
sed -e "s, /lib64/, ${_sysroot}/lib64/,g;s, /usr/lib64/, ${_sysroot}/usr/lib64/,g" \
|
||||
-i ${_sysroot}/usr/lib/libc.so
|
||||
touch .sed_subst_done
|
||||
fi
|
||||
|
||||
|
@ -298,6 +301,10 @@ 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}
|
||||
|
|
Loading…
Reference in a new issue