diff options
Diffstat (limited to 'base/gcc3/Pkgfile')
-rwxr-xr-x | base/gcc3/Pkgfile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/base/gcc3/Pkgfile b/base/gcc3/Pkgfile new file mode 100755 index 000000000..c15ea5c7f --- /dev/null +++ b/base/gcc3/Pkgfile @@ -0,0 +1,34 @@ +# Description: Le compilateur gcc version 3 +# URL: http://gnu.org +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: +# Run on: + +name=gcc3 +version=3.3.6 +release=1 +source=( http://ftp.gnu.org/gnu/gcc/gcc-$version/gcc-$version.tar.bz2\ + http://nutyx.meticul.eu/files/patchs/$name/gcc-3.3.6-no_fixincludes-1.patch\ + http://nutyx.meticul.eu/files/patchs/$name/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 +} + |