summaryrefslogtreecommitdiffstats
path: root/base/gcc/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:30:49 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:30:49 +0200
commitab657b82f91c5d4d1d28f4ce1a68060df62df0c0 (patch)
treeecda6f08893de91cd99cbd3d0497adcd4a692b75 /base/gcc/Pkgfile
parent0395b49a280e214c0c3a9a13f264e29125d3a4cc (diff)
downloadnutyx-extra-ab657b82f91c5d4d1d28f4ce1a68060df62df0c0.tar.gz
nutyx-extra-ab657b82f91c5d4d1d28f4ce1a68060df62df0c0.tar.bz2
nutyx-extra-ab657b82f91c5d4d1d28f4ce1a68060df62df0c0.tar.xz
nutyx-extra-ab657b82f91c5d4d1d28f4ce1a68060df62df0c0.zip
Ajout de gcc#4.4.1-1
Diffstat (limited to 'base/gcc/Pkgfile')
-rwxr-xr-xbase/gcc/Pkgfile57
1 files changed, 57 insertions, 0 deletions
diff --git a/base/gcc/Pkgfile b/base/gcc/Pkgfile
new file mode 100755
index 000000000..5768e7c76
--- /dev/null
+++ b/base/gcc/Pkgfile
@@ -0,0 +1,57 @@
+# Description: La collection de compilateurs C, C++, obc GNU
+# URL: http://gcc.gnu.org
+# Packager: thierryn1 at hispeed dot ch
+# Maintainer: NuTyX core team
+# Depends on: mpfr
+
+name=gcc
+version=4.4.1
+release=1
+source=(ftp://ftp.gnu.org/gnu/$name/$name-$version/$name-$version.tar.bz2\
+ )
+
+build() {
+cd $name-$version
+
+sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+
+case `uname -m` in
+ i?86) sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' \
+ gcc/Makefile.in ;;
+esac
+
+sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
+
+mkdir ../gcc-build
+cd ../gcc-build
+../$name-$version/configure --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --enable-languages=c,c++,objc,fortran \
+ --enable-threads=posix \
+ --enable-__cxa_atexit \
+ --enable-clocale=gnu \
+ --enable-shared \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man --with-x=no \
+ --disable-multilib --disable-bootstrap
+
+ make
+ make DESTDIR=$PKG install
+
+ mkdir $PKG/lib
+ ln -sf ../usr/bin/cpp $PKG/lib/cpp
+ ln -sf gcc $PKG/usr/bin/cc
+ ln -sf g++ $PKG/usr/bin/c++
+ mv $PKG/usr/lib/gcc/*/$version/include-fixed/{limits.h,syslimits.h} $PKG/usr/lib/gcc/*/$version/include/
+ # Remove the dir file
+ if [ -f $PKG/usr/share/info/dir ]; then
+ rm $PKG/usr/share/info/dir
+ fi
+case `uname -m` in
+ i?86) sed -i "s|-L$SRC[^ ]* ||g" \
+ $PKG/usr/lib/{libstdc++.la,libsupc++.la} ;;
+ x86_64)
+ sed -i "s|-L$SRC[^ ]* ||g" \
+ $PKG/usr/lib64/{libstdc++.la,libsupc++.la} ;;
+esac
+}