From eec18ec014dd4b5a91989db46ddde1482f7285ec Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Sat, 3 Dec 2016 20:38:41 +0100 Subject: [PATCH] avr-gcc: update to 6.2.1 --- srcpkgs/avr-gcc/template | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/srcpkgs/avr-gcc/template b/srcpkgs/avr-gcc/template index 132e7bc0c9e..d08aa2dca3c 100644 --- a/srcpkgs/avr-gcc/template +++ b/srcpkgs/avr-gcc/template @@ -1,25 +1,26 @@ # Template build file for 'avr-gcc' pkgname=avr-gcc -version=5.3.0 -revision=2 +version=6.2.1 +revision=1 short_desc="The GNU C Compiler for AVR" maintainer="allan " homepage="http://gcc.gnu.org" license="GFDL-1.2, GPL-3, LGPL-2.1" -distfiles="$GNU_SITE/gcc/gcc-$version/gcc-$version.tar.bz2" -checksum=b84f5592e9218b73dbae612b5253035a7b34a9a1f7688d2e1bfaaf7267d5c4db +distfiles="https://repo.voidlinux.eu/distfiles/gcc-$version.tar.xz" +checksum=a7addd2d4e42e66c3b56ced8baee5a11ef7fb577e23615a4f43877273eaf9409 wrksrc="gcc-$version" -hostmakedepends="avr-binutils" +hostmakedepends="flex avr-binutils" if [ "$CROSS_BUILD" ]; then # Need a direct cross-compiler for libgcc. hostmakedepends+=" avr-gcc" fi -makedepends="zlib-devel libmpc-devel cloog-devel gmp-devel mpfr-devel" +makedepends="zlib-devel libmpc-devel isl15-devel" depends="avr-binutils" nostrip=yes do_configure() { + [ -d obj-avr ] && rm -rf obj-avr mkdir obj-avr cd obj-avr @@ -28,6 +29,7 @@ do_configure() { CONFIG_SHELL=/bin/bash \ LDFLAGS= \ ../configure \ + --prefix=/usr \ --disable-install-libiberty \ --disable-libssp \ --disable-libstdcxx-pch \ @@ -46,15 +48,16 @@ do_configure() { --enable-lto \ --enable-plugin \ --enable-shared \ - --prefix=/usr \ --build=$XBPS_TRIPLET \ --host=$XBPS_CROSS_TRIPLET \ --target=avr \ + --with-isl \ --with-gnu-as \ --with-gnu-ld \ --with-as=/usr/bin/avr-as \ --with-ld=/usr/bin/avr-ld \ --with-plugin-ld=ld.gold \ + --with-default-libstdcxx-abi=gcc4-compatible \ --with-system-zlib }