gcc: allow mips{,el} builds.

This commit is contained in:
Juan RP 2015-07-08 11:45:12 +02:00
parent 2555ecdd59
commit 6c9ce010f8
1 changed files with 9 additions and 1 deletions

View File

@ -20,7 +20,7 @@ makedepends="zlib-devel libmpc-devel cloog-devel"
depends="binutils libgcc-${version}_${revision}"
subpackages="libgcc libgomp libgomp-devel libatomic libatomic-devel"
subpackages+=" libitm libitm-devel libssp libssp-devel gcc-c++"
subpackages+=" libssp libssp-devel gcc-c++"
if [ -n "$CHROOT_READY" -a -z "$CROSS_BUILD" ]; then
subpackages+=" gcc-fortran gcc-objc gcc-objc++"
@ -53,6 +53,8 @@ case "$XBPS_TARGET_MACHINE" in
armv7l-musl) _triplet="armv7l-linux-musleabihf";;
aarch64) _triplet="aarch64-linux-gnu";;
aarch64-musl) _triplet="aarch64-linux-musl";;
mips-musl) _triplet="mips-linux-musl";;
mipsel-musl) _triplet="mipsel-linux-muslhf";;
esac
case "$XBPS_TARGET_MACHINE" in
*-musl) depends+=" musl";;
@ -66,6 +68,10 @@ case "$XBPS_TARGET_MACHINE" in
subpackages+=" libvtv libvtv-devel"
;;
esac
case "$XBPS_TARGET_MACHINE" in
mips*) ;;
*) subpackages+=" libitm libitm-devel";;
esac
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
@ -82,6 +88,8 @@ do_configure() {
local _langs _args
case "$XBPS_TARGET_MACHINE" in
mipsel-musl) _args+=" --with-arch=mips32r2 --with-float=hard";;
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";;
armv7l*) _args+=" --with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard";;