X-Git-Url: http://gitweb/?a=blobdiff_plain;f=gcc%2FPkgfile;h=80f7475be734aa7c895a064c596b10a00e7d8e13;hb=a296e6b9b6f4ad71a8efc907d89a3496fbad83fc;hp=1343a1eafd99a8f0f1741d9002bea896de408d9e;hpb=676c65bf6104e0cb27cae42d1b14d88cfe787bfa;p=ports%2Fcore-arm.git diff --git a/gcc/Pkgfile b/gcc/Pkgfile index 1343a1e..80f7475 100644 --- a/gcc/Pkgfile +++ b/gcc/Pkgfile @@ -1,24 +1,26 @@ # Description: The GNU Compiler Collection -# URL: http://gcc.gnu.org/ +# URL: http://gcc.gnu.org # Maintainer: CRUX System Team, core-ports at crux dot nu # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu -# Depends on: libmpc zlib +# Depends on: zlib libmpc name=gcc -version=4.6.2 +version=4.8.5 release=1 - -source=(http://ftp.gnu.org/gnu/gcc/$name-$version/$name-$version.tar.bz2 - $name-nocheck-fixincludes.patch gcc-4.6-gnueabihf.patch) +source=(ftp://gcc.gnu.org/pub/gcc/releases/$name-$version/$name-$version.tar.bz2 + $name-nocheck-fixincludes.patch $name-$version-gnueabihf.patch) build() { - patch -d $name-$version -p1 -i $SRC/$name-4.6-gnueabihf.patch patch -d $name-$version -p1 -i $SRC/$name-nocheck-fixincludes.patch + patch -d $name-$version -p1 -i $SRC/$name-$version-gnueabihf.patch mkdir build cd build + ../$name-$version/configure --prefix=/usr \ - --build=$MACHTYPE \ + --build=arm-unknown-linux-gnueabihf \ + --with-abi=aapcs-linux --with-mode=arm \ + --with-float=hard \ --mandir=/usr/man \ --libexecdir=/usr/lib \ --enable-languages=c,c++,objc \ @@ -26,12 +28,12 @@ build() { --enable-__cxa_atexit \ --enable-clocale=gnu \ --enable-shared \ - --with-float=hard \ --disable-nls \ --with-x=no \ --with-system-zlib \ - --with-pkgversion="CRUX" - make bootstrap + --with-pkgversion="CRUX-ARM" + + make make -j1 DESTDIR=$PKG install mkdir $PKG/lib @@ -41,10 +43,10 @@ build() { mv $PKG/usr/lib/gcc/*/$version/include-fixed/{limits.h,syslimits.h} $PKG/usr/lib/gcc/*/$version/include/ - rm $PKG/usr/lib/{libiberty.a,libstdc++.so.*-gdb.py} - rm -r $PKG/usr/share - rm -r $PKG/usr/bin/*-linux-gnueabi* - rm -r $PKG/usr/lib/gcc/*/$version/{install-tools,include-fixed} + rm $PKG/usr/lib/libstdc++.so.6.0.19-gdb.py + rm -r $PKG/usr/share + rm -r $PKG/usr/bin/*-linux-gnu* + rm -r $PKG/usr/lib/gcc/*/$version/{install-tools,include-fixed} sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/{libstdc++.la,libsupc++.la} }