chroot-gcc: make armv6l default to armv6 with vfp; add defs for armv7l.
This commit is contained in:
parent
8c95573795
commit
4041170616
@ -7,7 +7,7 @@ _mpc_ver=0.8.2
|
|||||||
|
|
||||||
pkgname=chroot-gcc
|
pkgname=chroot-gcc
|
||||||
version=${_majorver}.3
|
version=${_majorver}.3
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="gcc-${version}"
|
wrksrc="gcc-${version}"
|
||||||
homepage="http://gcc.gnu.org"
|
homepage="http://gcc.gnu.org"
|
||||||
short_desc="The GNU C Compiler suite -- for xbps-src use"
|
short_desc="The GNU C Compiler suite -- for xbps-src use"
|
||||||
@ -110,7 +110,9 @@ do_configure() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
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
|
fi
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
@ -147,7 +149,7 @@ do_configure() {
|
|||||||
--without-cloog --without-ppl --disable-libstdcxx-pch \
|
--without-cloog --without-ppl --disable-libstdcxx-pch \
|
||||||
--disable-libquadmath --disable-libquadmath-support \
|
--disable-libquadmath --disable-libquadmath-support \
|
||||||
--disable-libgomp --disable-libssp --disable-libitm \
|
--disable-libgomp --disable-libssp --disable-libitm \
|
||||||
${_args} ${_floatabi}
|
${_args}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user