diff options
author | root <root@rshg054.dnsready.net> | 2013-04-15 00:06:15 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-04-15 00:06:15 -0700 |
commit | 030187a191f576ae92cef43f3c8cd7f1df084b87 (patch) | |
tree | 5362cfd60ff423656d8803918f94fd3478659e09 /community/avr-gcc/PKGBUILD | |
parent | 8ec4fd7a9e4748c568b20fefcb2dec0f289dc213 (diff) |
Mon Apr 15 00:06:15 PDT 2013
Diffstat (limited to 'community/avr-gcc/PKGBUILD')
-rw-r--r-- | community/avr-gcc/PKGBUILD | 63 |
1 files changed, 45 insertions, 18 deletions
diff --git a/community/avr-gcc/PKGBUILD b/community/avr-gcc/PKGBUILD index 36ed19ef1..d7bca6f70 100644 --- a/community/avr-gcc/PKGBUILD +++ b/community/avr-gcc/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 77419 2012-10-09 18:03:26Z schuay $ +# $Id: PKGBUILD 88221 2013-04-14 18:17:00Z schuay $ # Maintainer: schuay <jakob.gruber@gmail.com> # Contributor: Brad Fanella <bradfanella@archlinux.us> # Contributor: Corrado Primier <bardo@aur.archlinux.org> @@ -8,19 +8,20 @@ pkgname=avr-gcc _pkgname=gcc -pkgver=4.7.2 +pkgver=4.8.0 pkgrel=1 pkgdesc="The GNU AVR Compiler Collection" arch=('i686' 'x86_64') -license=('GPL' 'LGPL' 'custom') +license=('GPL' 'LGPL' 'FDL' 'custom') url="http://gcc.gnu.org/" -depends=('avr-binutils>=2.22-3' 'cloog' 'ppl' 'gcc-libs>=4.7.0' 'libmpc') +depends=('avr-binutils>=2.23' 'cloog' 'ppl' 'gcc-libs>=4.8.0' 'libmpc') +optdepends=('avr-libc: Standard C library for Atmel AVR development') provides=("gcc-avr=$pkgver") replaces=('gcc-avr') -options=('!libtool' '!emptydirs' '!libtool' '!strip') +options=('!libtool' '!emptydirs' '!strip') source=(http://ftp.gnu.org/gnu/gcc/${_pkgname}-${pkgver}/gcc-${pkgver}.tar.bz2) -_basedir=${srcdir}/${_pkgname}-${pkgver} +_basedir=${_pkgname}-${pkgver} build() { # default CFLAGS lead to issues later on when configure @@ -28,30 +29,52 @@ build() { export CFLAGS="-O2 -pipe" export CXXFLAGS="-O2 -pipe" - cd ${_basedir} + cd ${srcdir}/${_basedir} # Do not install libiberty sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in + # https://bugs.archlinux.org/task/34629 + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" gcc/configure + echo ${pkgver} > gcc/BASE-VER cd ${srcdir} mkdir gcc-build && cd gcc-build - ${_basedir}/configure \ - --prefix=/usr \ + ${srcdir}/${_basedir}/configure \ + --disable-cloog-version-check \ + --disable-install-libiberty \ + --disable-libssp \ + --disable-libstdcxx-pch \ + --disable-libunwind-exceptions \ + --disable-nls \ + --disable-werror \ + --enable-__cxa_atexit \ + --enable-checking=release \ + --enable-clocale=gnu \ + --enable-cloog-backend=isl \ + --enable-gnu-unique-object \ + --enable-gold \ + --enable-languages=c,c++ \ + --enable-ld=default \ + --enable-linker-build-id \ + --enable-lto \ + --enable-plugin \ + --enable-shared \ + --infodir=/usr/share/info \ --libdir=/usr/lib \ --libexecdir=/usr/lib \ --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --enable-languages=c,c++ \ - --disable-libssp \ - --disable-nls \ + --prefix=/usr \ --target=avr \ --with-as=/usr/bin/avr-as \ - --with-ld=/usr/bin/avr-ld \ --with-gnu-as \ - --with-gnu-ld + --with-gnu-ld \ + --with-ld=/usr/bin/avr-ld \ + --with-plugin-ld=ld.gold \ + --with-system-zlib make } @@ -61,12 +84,16 @@ package() { make -j1 DESTDIR=${pkgdir} install - # Install Runtime Library Exception - install -Dm644 ${_basedir}/COPYING.RUNTIME \ + # Strip debug symbols from libraries; without this, the package size balloons to ~500MB. + find ${pkgdir}/usr/lib -type f -name "*.a" \ + -exec /usr/bin/avr-strip --strip-debug '{}' \; + + # Install Runtime Library Exception + install -Dm644 ${srcdir}/${_basedir}/COPYING.RUNTIME \ ${pkgdir}/usr/share/licenses/${pkgname}/RUNTIME.LIBRARY.EXCEPTION rm -rf ${pkgdir}/usr/share/man/man7 rm -rf ${pkgdir}/usr/share/info } -md5sums=('cc308a0891e778cfda7a151ab8a6e762') +md5sums=('e6040024eb9e761c3bea348d1fa5abb0') |