diff options
author | tnut <thierryn1 at hispeed dot ch> | 2011-02-15 20:04:10 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2011-02-15 20:04:10 +0100 |
commit | 0a1deae3c99ebb13d4ae82989069e14a38d7e024 (patch) | |
tree | 9250210a6278f7566607a8ba28e5b1526e609f15 /base/gcc/Pkgfile | |
parent | 085969f23515a978e7416ac63f865801d53dd2ce (diff) | |
download | nutyx-pakxe-0a1deae3c99ebb13d4ae82989069e14a38d7e024.tar.gz nutyx-pakxe-0a1deae3c99ebb13d4ae82989069e14a38d7e024.tar.bz2 nutyx-pakxe-0a1deae3c99ebb13d4ae82989069e14a38d7e024.tar.xz nutyx-pakxe-0a1deae3c99ebb13d4ae82989069e14a38d7e024.zip |
gcc, maj 4.6.0-1
Diffstat (limited to 'base/gcc/Pkgfile')
-rwxr-xr-x | base/gcc/Pkgfile | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/base/gcc/Pkgfile b/base/gcc/Pkgfile index 215033916..db737b38e 100755 --- a/base/gcc/Pkgfile +++ b/base/gcc/Pkgfile @@ -4,22 +4,13 @@ # Maintainer: NuTyX core team name=gcc -version=4.5.1 +version=4.6.0 release=1 -source=(ftp://ftp.gnu.org/gnu/$name/$name-$version/$name-$version.tar.bz2 \ - gcc_pure64.patch - gcc-hash-style-both.patch ) +source=(ftp://ftp.gnu.org/gnu/$name/$name-$version/$name-$version.tar.bz2) build() { -cd $name-$version - -if [ "${CARCH}" = "x86_64" ]; then - patch -Np1 -i ../gcc_pure64.patch - fi - - patch -Np0 -i ../gcc-hash-style-both.patch - +cd $name-* sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in case `uname -m` in @@ -32,12 +23,12 @@ sed -i 's/getline/get_line/' libiberty/testsuite/test-demangle.c mkdir ../gcc-build cd ../gcc-build -../$name-$version/configure --prefix=/usr \ +../$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 + --disable-multilib --disable-bootstrap --with-system-zlib make make DESTDIR=$PKG install @@ -47,17 +38,17 @@ cd ../gcc-build 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/ - # Move the python files, tanks to bouleetbil - case `uname -m` in - i?86) - mv $PKG/usr/lib/libstdc++.so.6.0.14-gdb.py $PKG/usr/share/$name-$version/python/libstdcxx/ ;; - x86_64) - mv $PKG/usr/lib64/libstdc++.so.6.0.14-gdb.py $PKG/usr/share/$name-$version/python/libstdcxx/ ;; - esac # 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.15-gdb.py $PKG/usr/share/$name-$version/python/libstdcxx/ ;; + x86_64) + mv $PKG/usr/lib64/libstdc++.so.6.0.15-gdb.py $PKG/usr/share/$name-$version/python/libstdcxx/ ;; + esac case `uname -m` in i?86) sed -i "s|-L$SRC[^ ]* ||g" \ |