CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
gcc: added patch to use the new /lib/ld-linux-armhf.so.3 linker provided by glibc...
[crossrootfs.git] / gcc / Pkgfile
index c0aab554976dbea8204b4f644bceb3a58a48ea58..93fed3520337f8a6ce6a63520a52d77c869836c7 100644 (file)
@@ -5,16 +5,18 @@
 # Depends on: zlib libmpc
 
 name=gcc
-version=4.6.1
+version=4.7.2
 release=1
-source=(ftp://sources.redhat.com/pub/gcc/releases/$name-$version/$name-{core,g++}-$version.tar.bz2
-        $name-$version-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() {
   cd $name-$version
+
   patch -p1 -i $SRC/$name-$version-gnueabihf.patch
-  sed -i 's|REVISION|REVISION " (CRUX)"|' $name/version.c
+  patch -p1 -i $SRC/$name-nocheck-fixincludes.patch
+  sed -i 's|REVISION|REVISION " (CRUX-ARMHF)"|' $name/version.c
   # apply a sed substitutio that will suppress the installation of libiberty.a
   sed 's|install_to_$(INSTALL_DEST) ||' -i libiberty/Makefile.in
 
@@ -38,7 +40,7 @@ build() {
                               --disable-nls \
                               --with-x=no \
                               --with-system-zlib \
-                              --with-pkgversion="CRUX"
+                              --with-pkgversion="CRUX-ARMHF"
 
   # 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
@@ -53,7 +55,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.17-gdb.py
   rm -r $PKG/usr/share
   rm -r $PKG/usr/lib/gcc/*/$version/{install-tools,include-fixed}