CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
sed: updated mandir
[crossrootfs.git] / gcc / Pkgfile
index 9cb26788d400098c9bdfba6451da57fec215bb0f..a5bf931c84189e80573dab91c38df5f6204d4ee9 100644 (file)
@@ -5,25 +5,25 @@
 # Depends on: zlib libmpc
 
 name=gcc
-version=4.5.2
-release=1
-source=(ftp://sources.redhat.com/pub/gcc/releases/$name-$version/$name-{core,g++}-$version.tar.bz2
-        $name-nocheck-fixincludes.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
   patch -p1 -i $SRC/$name-nocheck-fixincludes.patch
-  sed -i 's|REVISION|REVISION " (CRUX)"|' $name/version.c
-  # apply a sed substitutio that will suppress the installation of libiberty.a
+  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
-  # avoid hardcodeds
-  sed 's|@have_mktemp_command@|yes|' -i gcc/gccbug.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 \
@@ -37,16 +37,17 @@ build() {
                               --enable-__cxa_atexit \
                               --enable-clocale=gnu \
                               --enable-shared \
+                              --with-float=hard \
                               --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
@@ -55,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.14-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}