diff options
author | root <root@rshg054.dnsready.net> | 2012-08-16 00:02:36 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-08-16 00:02:36 +0000 |
commit | 0fc1870f2eadde8cb06004be1cbe8d1a4333aa69 (patch) | |
tree | 09ae142c72b3ef3bba14bcd0fbd982446585d894 /community-testing/arm-elf-gcc-base/PKGBUILD | |
parent | 8f1eb849d6de0031d4d91fb6d8780828b1ba924b (diff) |
Thu Aug 16 00:02:36 UTC 2012
Diffstat (limited to 'community-testing/arm-elf-gcc-base/PKGBUILD')
-rw-r--r-- | community-testing/arm-elf-gcc-base/PKGBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/community-testing/arm-elf-gcc-base/PKGBUILD b/community-testing/arm-elf-gcc-base/PKGBUILD new file mode 100644 index 000000000..4946b78ae --- /dev/null +++ b/community-testing/arm-elf-gcc-base/PKGBUILD @@ -0,0 +1,61 @@ +# $Id: PKGBUILD 75111 2012-08-14 08:27:41Z allan $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=arm-elf-gcc-base +pkgver=4.7.0 +pkgrel=2 +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-${pkgver}.tar.bz2) +md5sums=('2a0f1d99fda235c29d40b561f81d9a77') + +build() { + cd $srcdir/gcc-$pkgver + + export CFLAGS="-O2 -pipe" + export CXXFLAGS="-O2 -pipe" + + rm -rf build + mkdir build + cd build + + ../configure --prefix=/usr \ + --target=arm-elf \ + --enable-obsolete \ + --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 --strip-debug --strip-unneeded {} \; 2>/dev/null || true +} |