summaryrefslogtreecommitdiffstats
path: root/extra/gcc3/Pkgfile
blob: 0818edd7f9513c9819b725ff543b8e125fa4932e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Description: Le compilateur gcc version 3
# URL: http://gnu.org
# Maintainer: NuTyX core team 
# Packager: thierryn1 at hispeed dot ch
# Depends on:

name=gcc3
version=3.3.6
release=1
group=dev
source=( http://ftp.gnu.org/gnu/gcc/gcc-$version/gcc-$version.tar.bz2\
	 http://www.linuxfromscratch.org/patches/blfs/svn/gcc-3.3.6-no_fixincludes-1.patch\
	 http://www.linuxfromscratch.org/patches/blfs/svn/gcc-3.3.6-linkonce-1.patch)


build() {
	mkdir -p $PKG/usr/lib
	cd gcc-$version
	patch -Np1 -i ../gcc-3.3.6-no_fixincludes-1.patch
	patch -Np1 -i ../gcc-3.3.6-linkonce-1.patch
	mkdir ../gcc-build
	cd ../gcc-build
	../gcc-$version/configure --prefix=/opt/gcc-$version \
		--enable-shared \
		--enable-languages=c,c++ \
		--enable-threads=posix
	make bootstrap
#	make -k check
	make DESTDIR=$PKG install
	mv -v $PKG/opt/gcc-3.3.6/lib/libstdc++.so.5* \
	$PKG/usr/lib
	rm -r $PKG/usr
}