diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/cross-arm-elf-gcc-base/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/cross-arm-elf-gcc-base/PKGBUILD')
-rw-r--r-- | community/cross-arm-elf-gcc-base/PKGBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/community/cross-arm-elf-gcc-base/PKGBUILD b/community/cross-arm-elf-gcc-base/PKGBUILD new file mode 100644 index 000000000..884d697c8 --- /dev/null +++ b/community/cross-arm-elf-gcc-base/PKGBUILD @@ -0,0 +1,52 @@ +# $Id: PKGBUILD 36540 2011-01-04 13:58:12Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=cross-arm-elf-gcc-base +pkgver=4.5.2 +pkgrel=1 +pkgdesc="The GNU Compiler Collection" +arch=(i686 x86_64) +license=('GPL' 'LGPL') +url="http://gcc.gnu.org" +depends=('cross-arm-elf-binutils' 'libmpc' 'libelf' 'cloog-ppl') +options=(!libtool !emptydirs zipman docs !strip) +source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-core-${pkgver}.tar.bz2) +md5sums=('aa9e36bec080452372bfba793428ee82') + +build() { + cd $srcdir/gcc-$pkgver + + export CFLAGS="-O2 -pipe" + export CXXFLAGS="-O2 -pipe" + + [ $NOEXTRACT -eq 1 ] || rm -rf build + mkdir build + cd build + + [ $NOEXTRACT -eq 1 ] || ../configure --prefix=/usr \ + --target=arm-elf \ + --host=$CHOST \ + --build=$CHOST \ + --enable-shared --disable-nls --enable-languages=c --enable-multilib \ + --with-local-prefix=/usr/lib/cross-arm \ + --with-as=/usr/bin/arm-elf-as --with-ld=/usr/bin/arm-elf-ld \ + --enable-softfloat \ + --with-float=soft \ + --with-newlib \ + --with-sysroot=/usr/$CHOST/arm-elf + + make all-gcc all-target-libgcc + make DESTDIR=$pkgdir install-gcc install-target-libgcc + + rm -f $pkgdir/usr/share/man/man7/fsf-funding.7* + rm -f $pkgdir/usr/share/man/man7/gfdl.7* + rm -f $pkgdir/usr/share/man/man7/gpl.7* + rm -rf $pkgdir/usr/share/info + + cp -r $pkgdir/usr/libexec/* $pkgdir/usr/lib/ + rm -rf $pkgdir/usr/libexec + + # strip it manually + strip $pkgdir/usr/bin/* 2>/dev/null || true + find $pkgdir/usr/lib -type f -exec arm-elf-strip {} \; 2>/dev/null || true +} |