CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
gcc: updated to 5.3.0 and applied j_v patch
[crossrootfs.git] / gcc / Pkgfile
index a5bf931c84189e80573dab91c38df5f6204d4ee9..11b94e4de07b5da4b420619d0c9492fd427c504c 100644 (file)
@@ -5,8 +5,8 @@
 # Depends on: zlib libmpc
 
 name=gcc
-version=5.2.0
-release=2
+version=5.3.0
+release=1
 source=(ftp://gcc.gnu.org/pub/gcc/releases/$name-$version/$name-$version.tar.bz2
         $name-nocheck-fixincludes.patch $name-$version-gnueabihf.patch)
 
@@ -47,6 +47,14 @@ build() {
   sed "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" -i Makefile
 
   make 
+
+  # prevent libtool from adding host lib paths for relink at install
+  # based on patch submitted by Vincent Cadet for libtool bug #21455
+  # see https://lists.gnu.org/archive/html/bug-libtool/2015-09/msg00012.html
+  for lt_file in $(find $SRC/build/$CTARGET -name libtool) ; do
+    sed -i 's/\(add_dir=\"\)\$add_dir \(-L\$inst_prefix_dir\$libdir\"\)/\1\2/' $lt_file
+  done
+
   make -j1 DESTDIR=$PKG install
 
   mkdir $PKG/lib