gcc: use soft-float on mipsel-musl (like in cross-*) and sysv hashes.

This commit is contained in:
Christian Neukirchen 2015-11-27 11:55:08 +01:00
parent 5745ea5b82
commit b275f0de68
1 changed files with 7 additions and 4 deletions

View File

@ -57,7 +57,8 @@ case "$XBPS_TARGET_MACHINE" in
aarch64) _triplet="aarch64-linux-gnu";; aarch64) _triplet="aarch64-linux-gnu";;
aarch64-musl) _triplet="aarch64-linux-musl";; aarch64-musl) _triplet="aarch64-linux-musl";;
mips-musl) _triplet="mips-linux-musl";; mips-musl) _triplet="mips-linux-musl";;
mipsel-musl) _triplet="mipsel-linux-muslhf";; mipsel-musl) _triplet="mipsel-linux-musl";;
mipselhf-musl) _triplet="mipsel-linux-muslhf";;
esac esac
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*-musl) depends+=" musl";; *-musl) depends+=" musl";;
@ -88,10 +89,12 @@ pre_configure() {
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
} }
do_configure() { do_configure() {
local _langs _args local _langs _args _hash
_hash=gnu
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
mipsel-musl) _args+=" --with-arch=mips32r2 --with-float=hard";; mipselhf-musl) _args+=" --with-arch=mips32r2 --with-float=hard"; _hash=sysv;;
mipsel-musl) _args+=" --with-arch=mips32r2 --with-float=soft"; _hash=sysv;;
mips-musl) _args+=" --with-arch=mip32r2 --with-float=soft";; mips-musl) _args+=" --with-arch=mip32r2 --with-float=soft";;
armv5*) _args+=" --with-arch=armv5te --with-float=soft";; armv5*) _args+=" --with-arch=armv5te --with-float=soft";;
armv6l*) _args+=" --with-arch=armv6 --with-fpu=vfp --with-float=hard";; armv6l*) _args+=" --with-arch=armv6 --with-fpu=vfp --with-float=hard";;
@ -152,7 +155,7 @@ do_configure() {
--with-system-zlib --enable-shared --enable-lto \ --with-system-zlib --enable-shared --enable-lto \
--enable-linker-build-id --disable-werror --disable-nls \ --enable-linker-build-id --disable-werror --disable-nls \
--enable-checking=release --disable-libstdcxx-pch \ --enable-checking=release --disable-libstdcxx-pch \
--enable-cloog-backend=isl --with-linker-hash-style=gnu \ --enable-cloog-backend=isl --with-linker-hash-style=$_hash \
--enable-languages=${_langs} ${_args} --enable-languages=${_langs} ${_args}
} }
do_build() { do_build() {