From 4041170616fbb2d5b3d4d5806047db852a61c3b6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 9 Jul 2013 15:41:55 +0200 Subject: [PATCH] chroot-gcc: make armv6l default to armv6 with vfp; add defs for armv7l. --- srcpkgs/chroot-gcc/template | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/srcpkgs/chroot-gcc/template b/srcpkgs/chroot-gcc/template index ebadefc1eb5..bb3b04855cf 100644 --- a/srcpkgs/chroot-gcc/template +++ b/srcpkgs/chroot-gcc/template @@ -7,7 +7,7 @@ _mpc_ver=0.8.2 pkgname=chroot-gcc version=${_majorver}.3 -revision=2 +revision=3 wrksrc="gcc-${version}" homepage="http://gcc.gnu.org" short_desc="The GNU C Compiler suite -- for xbps-src use" @@ -110,7 +110,9 @@ do_configure() { fi if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then - _floatabi="--with-float=hard" + _args+=" --with-arch=armv6 --with-fpu=vfp --with-float=hard" + elif [ "$XBPS_TARGET_MACHINE" = "armv7l" ]; then + _args+=" --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard" fi if [ "$CROSS_BUILD" ]; then @@ -147,7 +149,7 @@ do_configure() { --without-cloog --without-ppl --disable-libstdcxx-pch \ --disable-libquadmath --disable-libquadmath-support \ --disable-libgomp --disable-libssp --disable-libitm \ - ${_args} ${_floatabi} + ${_args} } do_build() {