summaryrefslogtreecommitdiff
path: root/community/cross-arm-elf-gcc-base/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2012-01-09 13:47:51 +0000
committerParabola <dev@list.parabolagnulinux.org>2012-01-09 13:47:51 +0000
commit7a3611f5caa5e34c1f2b582640f97b733110ae63 (patch)
tree5b0baf1ad1b36444ffbf73707a377b15fc67692f /community/cross-arm-elf-gcc-base/PKGBUILD
parent46783b68621b6ad45cdd9ed64cfa8cdcfbc6f318 (diff)
Mon Jan 9 13:47:49 UTC 2012
Diffstat (limited to 'community/cross-arm-elf-gcc-base/PKGBUILD')
-rw-r--r--community/cross-arm-elf-gcc-base/PKGBUILD60
1 files changed, 0 insertions, 60 deletions
diff --git a/community/cross-arm-elf-gcc-base/PKGBUILD b/community/cross-arm-elf-gcc-base/PKGBUILD
deleted file mode 100644
index a46c4185f..000000000
--- a/community/cross-arm-elf-gcc-base/PKGBUILD
+++ /dev/null
@@ -1,60 +0,0 @@
-# $Id: PKGBUILD 46060 2011-05-03 09:42:29Z spupykin $
-# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
-
-pkgname=cross-arm-elf-gcc-base
-pkgver=4.6.0
-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')
-options=(!libtool !emptydirs zipman docs !strip)
-source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-core-${pkgver}.tar.bz2)
-md5sums=('b1957f3209080b2f55bc3756d3a62b7c')
-
-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
-}
-
-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
-}