[arch-commits] Commit in aarch64-linux-gnu-binutils/trunk (PKGBUILD)

Anatol Pomozov anatolik at archlinux.org
Sat Dec 17 08:05:06 UTC 2016


    Date: Saturday, December 17, 2016 @ 08:05:06
  Author: anatolik
Revision: 199920

Enable gold linker

Modified:
  aarch64-linux-gnu-binutils/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-12-17 08:03:06 UTC (rev 199919)
+++ PKGBUILD	2016-12-17 08:05:06 UTC (rev 199920)
@@ -4,7 +4,7 @@
 _target=aarch64-linux-gnu
 pkgname=$_target-binutils
 pkgver=2.27
-pkgrel=1
+pkgrel=2
 #_commit=2bd25930
 pkgdesc='A set of programs to assemble and manipulate binary and object files for the ARM64 target'
 arch=(i686 x86_64)
@@ -24,6 +24,12 @@
 build() {
   cd binutils-$pkgver
 
+  if [ "${CARCH}" != "i686" ];
+  then
+    # enabling gold linker at i686 makes the install fail
+    enable_gold='--enable-gold'
+  fi
+
   ./configure --target=$_target \
               --with-sysroot=/usr/$_target \
               --prefix=/usr \
@@ -31,7 +37,10 @@
               --with-gnu-as \
               --with-gnu-ld \
               --disable-nls \
-              --enable-plugins
+              --enable-ld=default \
+              $enable_gold \
+              --enable-plugins \
+              --enable-deterministic-archives
 
   make
 }
@@ -41,7 +50,7 @@
   
   # unset LDFLAGS as testsuite makes assumptions about which ones are active
   # do not abort on errors - manually check log files
-  make LDFLAGS="" -k check
+  make -k LDFLAGS="" check || true
 }
 
 package() {



More information about the arch-commits mailing list