avr-gcc: update to 6.2.1

This commit is contained in:
Juergen Buchmueller 2016-12-03 20:38:41 +01:00
parent 8130bab922
commit eec18ec014

View file

@ -1,25 +1,26 @@
# Template build file for 'avr-gcc' # Template build file for 'avr-gcc'
pkgname=avr-gcc pkgname=avr-gcc
version=5.3.0 version=6.2.1
revision=2 revision=1
short_desc="The GNU C Compiler for AVR" short_desc="The GNU C Compiler for AVR"
maintainer="allan <mail@may.mooo.com>" maintainer="allan <mail@may.mooo.com>"
homepage="http://gcc.gnu.org" homepage="http://gcc.gnu.org"
license="GFDL-1.2, GPL-3, LGPL-2.1" license="GFDL-1.2, GPL-3, LGPL-2.1"
distfiles="$GNU_SITE/gcc/gcc-$version/gcc-$version.tar.bz2" distfiles="https://repo.voidlinux.eu/distfiles/gcc-$version.tar.xz"
checksum=b84f5592e9218b73dbae612b5253035a7b34a9a1f7688d2e1bfaaf7267d5c4db checksum=a7addd2d4e42e66c3b56ced8baee5a11ef7fb577e23615a4f43877273eaf9409
wrksrc="gcc-$version" wrksrc="gcc-$version"
hostmakedepends="avr-binutils" hostmakedepends="flex avr-binutils"
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
# Need a direct cross-compiler for libgcc. # Need a direct cross-compiler for libgcc.
hostmakedepends+=" avr-gcc" hostmakedepends+=" avr-gcc"
fi fi
makedepends="zlib-devel libmpc-devel cloog-devel gmp-devel mpfr-devel" makedepends="zlib-devel libmpc-devel isl15-devel"
depends="avr-binutils" depends="avr-binutils"
nostrip=yes nostrip=yes
do_configure() { do_configure() {
[ -d obj-avr ] && rm -rf obj-avr
mkdir obj-avr mkdir obj-avr
cd obj-avr cd obj-avr
@ -28,6 +29,7 @@ do_configure() {
CONFIG_SHELL=/bin/bash \ CONFIG_SHELL=/bin/bash \
LDFLAGS= \ LDFLAGS= \
../configure \ ../configure \
--prefix=/usr \
--disable-install-libiberty \ --disable-install-libiberty \
--disable-libssp \ --disable-libssp \
--disable-libstdcxx-pch \ --disable-libstdcxx-pch \
@ -46,15 +48,16 @@ do_configure() {
--enable-lto \ --enable-lto \
--enable-plugin \ --enable-plugin \
--enable-shared \ --enable-shared \
--prefix=/usr \
--build=$XBPS_TRIPLET \ --build=$XBPS_TRIPLET \
--host=$XBPS_CROSS_TRIPLET \ --host=$XBPS_CROSS_TRIPLET \
--target=avr \ --target=avr \
--with-isl \
--with-gnu-as \ --with-gnu-as \
--with-gnu-ld \ --with-gnu-ld \
--with-as=/usr/bin/avr-as \ --with-as=/usr/bin/avr-as \
--with-ld=/usr/bin/avr-ld \ --with-ld=/usr/bin/avr-ld \
--with-plugin-ld=ld.gold \ --with-plugin-ld=ld.gold \
--with-default-libstdcxx-abi=gcc4-compatible \
--with-system-zlib --with-system-zlib
} }