gcc: plumbing for ppcle
This commit is contained in:
parent
ad7ab5c568
commit
8384c3bda6
1 changed files with 6 additions and 1 deletions
|
@ -34,8 +34,9 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0"
|
|||
_have_gccgo=yes
|
||||
|
||||
# MIPS does not have libucontext yet
|
||||
# no support for ppcle in gccgo (missing GOARCH and stuff)
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
mips*-musl) _have_gccgo=no ;;
|
||||
mips*-musl|ppcle*) _have_gccgo=no ;;
|
||||
esac
|
||||
|
||||
if [ "$CHROOT_READY" ]; then
|
||||
|
@ -103,6 +104,8 @@ case "$XBPS_TARGET_MACHINE" in
|
|||
aarch64-musl) _triplet="aarch64-linux-musl";;
|
||||
ppc) _triplet="powerpc-linux-gnu";;
|
||||
ppc-musl) _triplet="powerpc-linux-musl";;
|
||||
ppcle) _triplet="powerpcle-linux-gnu";;
|
||||
ppcle-musl) _triplet="powerpcle-linux-musl";;
|
||||
ppc64le) _triplet="powerpc64le-linux-gnu";;
|
||||
ppc64le-musl) _triplet="powerpc64le-linux-musl";;
|
||||
ppc64) _triplet="powerpc64-linux-gnu";;
|
||||
|
@ -190,6 +193,8 @@ do_configure() {
|
|||
;;
|
||||
ppc) _args+=" --target=powerpc-linux-gnu --enable-secureplt";;
|
||||
ppc-musl) _args+=" --target=powerpc-linux-musl --enable-secureplt --disable-decimal-float";;
|
||||
ppcle) _args+=" --target=powerpcle-linux-gnu --enable-secureplt";;
|
||||
ppcle-musl) _args+=" --target=powerpcle-linux-musl --enable-secureplt --disable-decimal-float";;
|
||||
ppc64le*) # use lib not lib64 by default
|
||||
_args+=" --target=${_triplet} --with-abi=elfv2 --enable-secureplt --enable-targets=powerpcle-linux"
|
||||
sed -i 's/lib64/lib/' gcc/config/rs6000/linux64.h
|
||||
|
|
Loading…
Reference in a new issue