diff options
author | tnut <tnut at nutyx dot com> | 2012-01-08 12:12:28 +0100 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2012-01-08 12:12:28 +0100 |
commit | 9291e062cb24bac5d7c7059d4dc64669c1917b33 (patch) | |
tree | ae6f7e4fb2769d6c53b214c5e0b4d862f1df98dc /gcc/Pkgfile | |
parent | c9972ec7f32bf9d37388e853fe9bf633e242d05a (diff) | |
download | nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.gz nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.bz2 nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.xz nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.zip |
aaabasicfs 2011-3 et split des dépot base et extra en 2 git séparé
Diffstat (limited to 'gcc/Pkgfile')
-rwxr-xr-x | gcc/Pkgfile | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/gcc/Pkgfile b/gcc/Pkgfile new file mode 100755 index 000000000..f274389f9 --- /dev/null +++ b/gcc/Pkgfile @@ -0,0 +1,60 @@ +# Description: La collection de compilateurs C, C++, obc GNU +# URL: http://gcc.gnu.org +# Packager: thierryn1 at hispeed dot ch +# Maintainer: NuTyX core team + +name=gcc +version=4.6.2 +release=1 + +source=(ftp://ftp.gnu.org/gnu/$name/$name-$version/$name-$version.tar.bz2) + +build() { +cd $name-* +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 +sed -i 's/getline/get_line/' libiberty/testsuite/test-demangle.c + +mkdir ../gcc-build +cd ../gcc-build +../$name-*/configure --prefix=/usr \ + --libexecdir=/usr/lib --enable-shared \ + --enable-threads=posix --enable-__cxa_atexit \ + --enable-clocale=gnu --enable-languages=c,c++,objc,fortran \ + --infodir=/usr/share/info --mandir=/usr/share/man --with-x=no \ + --disable-multilib --disable-bootstrap --with-system-zlib + + 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 + # Move the python files, tanks to bouleetbil + case `uname -m` in + i?86) + mv $PKG/usr/lib/libstdc++.so.6.0.16-gdb.py $PKG/usr/share/$name-$version/python/libstdcxx/ ;; + x86_64) + mv $PKG/usr/lib64/libstdc++.so.6.0.16-gdb.py $PKG/usr/share/$name-$version/python/libstdcxx/ ;; + esac + + 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 +} |