mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
67 lines
2.4 KiB
Bash
67 lines
2.4 KiB
Bash
# $Id: PKGBUILD 47566 2009-07-24 05:20:35Z allan $
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
# Maintainer: Allan McRae <allan@archlinux.org>
|
|
|
|
# toolchain build order: kernel-headers->glibc->binutils->gcc-libs->gcc->binutils->glibc
|
|
|
|
pkgname=gcc-libs
|
|
pkgver=4.4.1
|
|
pkgrel=1
|
|
#_snapshot=4.4-20090630
|
|
pkgdesc="Runtime libraries shipped by GCC for C and C++ languages"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL' 'LGPL')
|
|
groups=('base')
|
|
url="http://gcc.gnu.org"
|
|
depends=('glibc>=2.10.1-3')
|
|
makedepends=('binutils>=2.19.1' 'gcc>=4.4' 'mpfr>=2.4.1' 'texinfo' 'flex' 'cloog-ppl>=0.15.3')
|
|
conflicts=('gcc-fortran' 'gcc-objc')
|
|
provides=("gcc-objc=${pkgver}")
|
|
options=('!libtool' '!emptydirs' '!docs')
|
|
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,fortran,objc}-${pkgver}.tar.bz2
|
|
#ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-{core,g++,fortran,objc}-${_snapshot}.tar.bz2
|
|
gcc_pure64.patch
|
|
gcc-hash-style-both.patch)
|
|
md5sums=('d19693308aa6b2052e14c071111df59f'
|
|
'd449047b5761348ceec23739f5553e0b'
|
|
'47b92407bd15703a0ebb9e36e0314615'
|
|
'f7b2a606394036e81433b2f4c3251cba'
|
|
'4030ee1c08dd1e843c0225b772360e76'
|
|
'6fd395bacbd7b6e47c7b74854b478363')
|
|
|
|
build() {
|
|
if ! locale -a | grep ^de_DE; then
|
|
echo "You need the de_DE locale to build gcc."
|
|
return 1
|
|
fi
|
|
|
|
cd ${srcdir}/gcc-${pkgver}
|
|
#cd ${srcdir}/gcc-${_snapshot}
|
|
# Don't install libiberty
|
|
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
|
|
|
|
if [ "${CARCH}" = "x86_64" ]; then
|
|
patch -Np1 -i ../gcc_pure64.patch || return 1
|
|
fi
|
|
patch -Np0 -i ${srcdir}/gcc-hash-style-both.patch || return 1
|
|
|
|
# Don't run fixincludes
|
|
sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
|
|
|
|
mkdir build
|
|
cd build
|
|
../configure --prefix=/usr --enable-shared \
|
|
--enable-languages=c,c++,fortran,objc,obj-c++ --enable-threads=posix \
|
|
--enable-__cxa_atexit --disable-multilib --libdir=/usr/lib \
|
|
--libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch \
|
|
--with-tune=generic
|
|
make || return 1
|
|
make -j1 DESTDIR=${pkgdir} install-target-libstdc++-v3 install-target-libmudflap install-target-libgomp install-target-libssp install-target-libgfortran install-target-libobjc install-target-libgcc || return 1
|
|
|
|
# Cleanup, libgomp installs the whole compiler it seems...
|
|
rm -rf ${pkgdir}/usr/include
|
|
rm -rf ${pkgdir}/usr/lib/gcc
|
|
rm -rf ${pkgdir}/usr/bin
|
|
rm -rf ${pkgdir}/usr{,share}/man
|
|
find ${pkgdir} -name gcc.mo -delete
|
|
}
|