diff options
author | root <root@rshg054.dnsready.net> | 2011-12-19 23:15:16 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-12-19 23:15:16 +0000 |
commit | 6d2dec5c3443d142a0131c43666929490961c16a (patch) | |
tree | eb6b8e70d6557d1651309c65aef4812d6d10da1f /community/arm-elf-gcc-base | |
parent | d8fd24a96ae712b2de3e9b05d937b135f41d016d (diff) |
Mon Dec 19 23:15:16 UTC 2011
Diffstat (limited to 'community/arm-elf-gcc-base')
-rw-r--r-- | community/arm-elf-gcc-base/PKGBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/community/arm-elf-gcc-base/PKGBUILD b/community/arm-elf-gcc-base/PKGBUILD new file mode 100644 index 000000000..a4490b7ea --- /dev/null +++ b/community/arm-elf-gcc-base/PKGBUILD @@ -0,0 +1,60 @@ +# $Id: PKGBUILD 60837 2011-12-18 22:34:22Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=arm-elf-gcc-base +pkgver=4.6.2 +pkgrel=1 +pkgdesc="The GNU Compiler Collection" +arch=(i686 x86_64) +license=('GPL' 'LGPL') +url="http://gcc.gnu.org" +depends=('arm-elf-binutils' 'libmpc' 'libelf') +options=(!libtool !emptydirs zipman docs !strip) +source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-core-${pkgver}.tar.bz2) +md5sums=('780f614ab18c7a9066dec6387d7490b2') + +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/arm-elf \ + --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 +} + +package() { + cd $srcdir/gcc-$pkgver/build + + export CFLAGS="-O2 -pipe" + export CXXFLAGS="-O2 -pipe" + + 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 +} |