4 pkgdesc="GNU C/C++ Compiler and libstdc++, version 2"
5 url="http://www.gnu.org/software/gcc"
9 source=(ftp://ftp.gnu.org/gnu/gcc/gcc-$pkgver.tar.gz \
10 http://www.linuxfromscratch.org/patches/lfs/5.0/gcc-2.95.3-2.patch \
11 http://www.linuxfromscratch.org/patches/lfs/5.0/gcc-2.95.3-returntype-fix.patch)
12 md5sums=('f3ad4f32c2296fad758ed051b5ac8e28' '55df4c204d1157f030f64b49d45e7e64'\
13 '4ad05637a4b9d655b6ebc64061b93ee8')
16 cd $startdir/src/gcc-$pkgver
17 patch -Np1 -i ../gcc-2.95.3-2.patch
18 patch -Np1 -i ../gcc-2.95.3-returntype-fix.patch
19 echo timestamp > gcc/cstamp-h.in
22 ../gcc-$pkgver/configure --prefix=/opt/gcc2 --enable-shared --enable-languages=c,c++ --enable-threads=posix
23 make bootstrap || return 1
24 make prefix=$startdir/pkg/opt/gcc2 install