core/gcc to 4.7.1-6

This commit is contained in:
Kevin Mihelich 2012-08-18 01:16:49 +00:00
parent 9747549010
commit eeed46bf80

View file

@ -9,15 +9,15 @@
# - removed gnat (ada stuff) from gcc packaging
# - disabled make check, too much stress, kills plugs :(
# - specifid build host, disabled distcc, make -j1 (v5), -j2 (v7)
# - patch for v7h gnueabihf triplet
# - patch for v6h/v7h gnueabihf triplet
noautobuild=1
pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc')
pkgver=4.7.1
pkgrel=5
pkgrel=6
_snapshot=4.7-20120721
_libstdcppmanver=20120605 # Note: check source directory name when updating this
_libstdcppmanver=20120725 # Note: check source directory name when updating this
pkgdesc="The GNU Compiler Collection"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL' 'custom')
@ -31,7 +31,7 @@ source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
gcc_pure64.patch
armhf-triplet-trunk.diff)
md5sums=('a1a53fda426bc6809cede8e85bbaf2a3'
'767c62f9a047c4434f2345decf1d0819'
'79c4381f983b71868c02da3379e1e8a2'
'ced48436c1b3c981d721a829f1094de1'
'bd7330bd41845929f1e0efb3b7d0a060')
@ -57,7 +57,7 @@ build() {
echo ${pkgver} > gcc/BASE-VER
# ALARM: Specify build host types, triplet patch
[[ $CARCH == "arm" ]] && CONFIGFLAG="--host=arm-unknown-linux-gnueabi --build=arm-unknown-linux-gnueabi" && MAKEFLAGS="-j1"
[[ $CARCH == "arm" ]] && CONFIGFLAG="--host=armv5tel-unknown-linux-gnueabi --build=armv5tel-unknown-linux-gnueabi" && MAKEFLAGS="-j2"
[[ $CARCH == "armv6h" ]] && CONFIGFLAG="--host=armv6l-unknown-linux-gnueabihf --build=armv6l-unknown-linux-gnueabihf --with-arch=armv6 --with-float=hard --with-fpu=vfp" && MAKEFLAGS="-j2"
[[ $CARCH == "armv7h" ]] && CONFIGFLAG="--host=armv7l-unknown-linux-gnueabihf --build=armv7l-unknown-linux-gnueabihf --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16" && MAKEFLAGS="-j2"
[[ $CARCH == "armv6h" || $CARCH == "armv7h" ]] && patch -p1 -i "${srcdir}/armhf-triplet-trunk.diff"
@ -157,9 +157,8 @@ package_gcc()
rm -f $pkgdir/usr/share/man/man1/gfortran.1
rm -f $pkgdir/usr/share/man/man3/ffi*
# many packages require these symlinks
# many packages expect this symlink
#install -dm755 ${pkgdir}/lib
ln -s /usr/bin/cpp ${pkgdir}/usr/lib/cpp
ln -s gcc ${pkgdir}/usr/bin/cc
# POSIX conformance launcher scripts for c89 and c99