CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
binutils: updated to 2.35.1
[ports/core-arm.git] / binutils / Pkgfile
index bd5a1e175b6f572a0fc940b6e08294bd0a095f26..a428544f865cd05e65fed7de349c4e8b8ff98c6d 100644 (file)
@@ -2,27 +2,33 @@
 # URL: http://sources.redhat.com/binutils/
 # Maintainer: CRUX System Team, core-ports at crux dot nu
 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
-# Depends on: zlib
+# Depends on: zlib flex
 
 name=binutils
-version=2.23.2
+version=2.35.1
 release=1
-source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
+source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.bz2)
 
 build() {
   sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
 
   mkdir build
   cd build
+
   ../$name-$version/configure --prefix=/usr \
                               --build=arm-unknown-linux-gnueabihf \
-                              --mandir=/usr/man \
                               --enable-shared \
-                              --disable-nls
+                              --disable-nls \
+                              --enable-ld=default \
+                              --enable-gold=yes \
+                              --enable-plugins \
+                              --enable-install-libiberty \
+                              --disable-werror \
+                              --with-system-zlib
+
   make tooldir=/usr
-  make check
   make tooldir=/usr DESTDIR=$PKG install
-  install -m 0644  ../$name-$version/include/libiberty.h $PKG/usr/include
-  rm -r $PKG/usr/share
-  sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la
+
+  rm -r $PKG/usr/share/info
+  sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.la
 }