[arch-commits] Commit in riscv64-linux-gnu-binutils/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun May 13 08:56:36 UTC 2018


    Date: Sunday, May 13, 2018 @ 08:56:35
  Author: felixonmars
Revision: 321574

archrelease: copy trunk to community-x86_64

Added:
  riscv64-linux-gnu-binutils/repos/community-x86_64/
  riscv64-linux-gnu-binutils/repos/community-x86_64/PKGBUILD
    (from rev 321573, riscv64-linux-gnu-binutils/trunk/PKGBUILD)

----------+
 PKGBUILD |   61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

Copied: riscv64-linux-gnu-binutils/repos/community-x86_64/PKGBUILD (from rev 321573, riscv64-linux-gnu-binutils/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-05-13 08:56:35 UTC (rev 321574)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Emil Renner Berthing <aur at esmil.dk>
+
+_target=riscv64-linux-gnu
+pkgname=$_target-binutils
+pkgver=2.29.1
+pkgrel=1
+pkgdesc='Assemble and manipulate binary and object files for 32bit and 64bit RISC-V'
+arch=('i686' 'x86_64')
+url='http://www.gnu.org/software/binutils/'
+license=('GPL')
+depends=('zlib')
+source=("https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz")
+sha1sums=('172244a349d07ec205c39c0321cbc354c125e78e')
+
+prepare() {
+  cd binutils-$pkgver
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+}
+
+build() {
+  cd binutils-$pkgver
+
+  unset CPPFLAGS
+
+  ./configure \
+    --target=$_target \
+    --prefix=/usr \
+    --with-sysroot=/usr/$_target \
+    --with-gnu-as \
+    --with-gnu-ld \
+    --with-system-zlib \
+    --disable-nls \
+    --enable-multilib \
+    --enable-ld=default \
+    --enable-gold \
+    --enable-plugins \
+    --enable-deterministic-archives
+
+  make
+}
+
+check() {
+  cd binutils-$pkgver
+
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # do not abort on errors - manually check log files
+  make LDFLAGS="" -k check
+}
+
+package() {
+  cd binutils-$pkgver
+
+  make DESTDIR="$pkgdir" install
+
+  # Remove info documents that conflict with host version
+  rm -r "$pkgdir"/usr/share/info
+}
+
+# vim: set ts=2 sw=2 et:



More information about the arch-commits mailing list