gcc: use soft-float on mipsel-musl (like in cross-*) and sysv hashes.
This commit is contained in:
parent
5745ea5b82
commit
b275f0de68
|
@ -57,7 +57,8 @@ case "$XBPS_TARGET_MACHINE" in
|
|||
aarch64) _triplet="aarch64-linux-gnu";;
|
||||
aarch64-musl) _triplet="aarch64-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
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) depends+=" musl";;
|
||||
|
@ -88,10 +89,12 @@ pre_configure() {
|
|||
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
|
||||
}
|
||||
do_configure() {
|
||||
local _langs _args
|
||||
local _langs _args _hash
|
||||
|
||||
_hash=gnu
|
||||
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";;
|
||||
armv5*) _args+=" --with-arch=armv5te --with-float=soft";;
|
||||
armv6l*) _args+=" --with-arch=armv6 --with-fpu=vfp --with-float=hard";;
|
||||
|
@ -152,7 +155,7 @@ do_configure() {
|
|||
--with-system-zlib --enable-shared --enable-lto \
|
||||
--enable-linker-build-id --disable-werror --disable-nls \
|
||||
--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}
|
||||
}
|
||||
do_build() {
|
||||
|
|
Loading…
Reference in New Issue