You are not logged in.
Pages: 1
Hey all. This is my first package build for arch.
This gcc 3.3.3 can be installed with gcc 3.4.0 on the system.
This might be needed with some programs that doesn't compile with gcc 3.4.0 yet. To use it, you have to specify the CC variable as gcc-3.3.3.
The package is in incoming.
# Maintainer: judd <jvinet@zeroflux.org>
# Edited for gcc 3.3.3: dpb <dpb@backarrow.org>
pkgname=gcc-3.3.3
pkgver=3.3.3
pkgrel=1
pkgdesc="The GNU Compiler Collection"
url="http://gcc.gnu.org"
depends=('glibc' 'binutils')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-3.3.3/gcc-3.3.3.tar.gz)
md5sums=('9615e03f5f4f00bf550ef8d340b5f4d2')
build() {
cd $startdir/src/gcc-3.3.3
mkdir ../gcc-build
cd ../gcc-build
../gcc-3.3.3/configure --prefix=/opt/gcc-3.3.3 --enable-shared
--enable-languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit
make bootstrap || return 1
make DESTDIR=$startdir/pkg install || return 1
rm -rf $startdir/pkg/opt/gcc-3.3.3/bin/c++filt $startdir/pkg/usr/lib/libiberty.a
(cd $startdir/pkg/opt/gcc-3.3.3/bin; ln -sf gcc cc; ln -sf g++ c++)
mkdir -p $startdir/pkg/usr/bin
(cd $startdir/pkg/usr/bin; ln -sf ../../opt/gcc-3.3.3/bin/cpp cpp-3.3.3;
ln -sf ../../opt/gcc-3.3.3/bin/gcc gcc-3.3.3; ln -sf ../../opt/gcc-3.3.3/bin/g++ g++-3.3.3;
ln -sf ../../opt/gcc-3.3.3/bin/i686-pc-linux-gnu-gcc-3.3.3)
# get rid of the references to my build dir
sed -i "s|-L$startdir/src[^ ]* ||g" $startdir/pkg/opt/gcc-3.3.3/lib/{libstdc++.la,libsupc++.la}
}
Offline
Pages: 1