X-Git-Url: http://gitweb/?a=blobdiff_plain;f=gcc%2FPkgfile;h=a5bf931c84189e80573dab91c38df5f6204d4ee9;hb=b4aac807c89c4c3f254c2320ab5a0e7a1fea2c44;hp=795910fa63ead0ebbe6e34660e4a2f793c467309;hpb=9be8a54407f91732078beb4b02a66d569ef97a8d;p=crossrootfs.git diff --git a/gcc/Pkgfile b/gcc/Pkgfile index 795910f..a5bf931 100644 --- a/gcc/Pkgfile +++ b/gcc/Pkgfile @@ -5,23 +5,25 @@ # Depends on: zlib libmpc name=gcc -version=4.6.1 -release=1 -source=(ftp://sources.redhat.com/pub/gcc/releases/$name-$version/$name-{core,g++}-$version.tar.bz2 - $name-$version-gnueabihf.patch) +version=5.2.0 +release=2 +source=(ftp://gcc.gnu.org/pub/gcc/releases/$name-$version/$name-$version.tar.bz2 + $name-nocheck-fixincludes.patch $name-$version-gnueabihf.patch) build() { cd $name-$version - - patch -p1 -i $SRC/$name-$version-gnueabihf.patch - sed -i 's|REVISION|REVISION " (CRUX)"|' $name/version.c - # apply a sed substitutio that will suppress the installation of libiberty.a + +# patch -p1 -i $SRC/$name-$version-gnueabihf.patch + patch -p1 -i $SRC/$name-nocheck-fixincludes.patch + sed -i 's|REVISION|REVISION " (CRUX-ARM)"|' $name/version.c + # apply a sed substitution that will suppress the installation of libiberty.a sed 's|install_to_$(INSTALL_DEST) ||' -i libiberty/Makefile.in mkdir $SRC/build cd $SRC/build + export CXXFLAGS="-O2 -pipe" LDFLAGS="-Wl,-rpath-link,$CROSSTOOLS/$CTARGET/lib" \ ../$name-$version/configure --build=$CHOST \ --host=$CTARGET \ @@ -39,13 +41,13 @@ build() { --disable-nls \ --with-x=no \ --with-system-zlib \ - --with-pkgversion="CRUX" + --with-pkgversion="CRUX-ARM" # prevent GCC from looking in the wrong directories for headers and libraries sed "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" -i Makefile - make - make DESTDIR=$PKG install + make + make -j1 DESTDIR=$PKG install mkdir $PKG/lib ln -sf ../usr/bin/cpp $PKG/lib/cpp @@ -54,7 +56,7 @@ build() { mv $PKG/usr/lib/gcc/*/$version/include-fixed/{limits.h,syslimits.h} $PKG/usr/lib/gcc/*/$version/include/ - rm $PKG/usr/lib/libstdc++.so.6.0.16-gdb.py + rm $PKG/usr/lib/libstdc++.so.6.0.21-gdb.py rm -r $PKG/usr/share rm -r $PKG/usr/lib/gcc/*/$version/{install-tools,include-fixed}