diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-06-16 09:37:09 +0200 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-06-16 09:37:09 +0200 |
commit | d7b22dce67838239d86de567a3d9bd253a06cd1b (patch) | |
tree | 2a9e3d151e0d05cb0c4bce0c330eae4e3bbb54cc /extra/gcc3/Pkgfile | |
parent | afa5fc118e0ed5d8fa3773e608488feed72936cf (diff) | |
download | nutyx-extra-d7b22dce67838239d86de567a3d9bd253a06cd1b.tar.gz nutyx-extra-d7b22dce67838239d86de567a3d9bd253a06cd1b.tar.bz2 nutyx-extra-d7b22dce67838239d86de567a3d9bd253a06cd1b.tar.xz nutyx-extra-d7b22dce67838239d86de567a3d9bd253a06cd1b.zip |
ajout de gcc3#3.3.6-1
Diffstat (limited to 'extra/gcc3/Pkgfile')
-rwxr-xr-x | extra/gcc3/Pkgfile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/extra/gcc3/Pkgfile b/extra/gcc3/Pkgfile new file mode 100755 index 000000000..bee88a026 --- /dev/null +++ b/extra/gcc3/Pkgfile @@ -0,0 +1,33 @@ +# Description: Le compilateur gcc version 3 +# URL: http://gnu.org +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: gcc3-libs + +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 +} |