1 # Maintainer: Filipe LaĆns (FFY00) <lains@archlinux.org>
2 # Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
5 pkgname=$_target-binutils
8 pkgdesc='A set of programs to assemble and manipulate binary and object files for the OpenRISC 1000 (bare-metal) target'
10 url='https://www.gnu.org/software/binutils/'
13 source=("https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2"{,.sig})
14 sha512sums=('faa592dd48fc715901ad704ac96dbd34b1792c51e77c7a92a387964b0700703c74be07de45cc4751945c8c0674368c73dc17bbc563d1d2cd235b5ebd8c6e7efb'
16 validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93' # Tristan Gingold <gingold@adacore.com>
17 '3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton (Chief Binutils Maintainer) <nickc@redhat.com>
22 sed -i '/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/' libiberty/configure
28 ./configure --target=$_target \
29 --with-sysroot=/usr/$_target \
39 --enable-deterministic-archives
47 # unset LDFLAGS as testsuite makes assumptions about which ones are active
48 # do not abort on errors - manually check log files
49 make LDFLAGS="" -k check || true
55 make DESTDIR="$pkgdir" install
57 # Remove file conflicting with host binutils and manpages for MS Windows tools
58 rm "$pkgdir"/usr/share/man/man1/$_target-{dlltool,windres,windmc}*
59 rm "$pkgdir"/usr/lib/bfd-plugins/libdep.so
61 # Remove info documents that conflict with host version
62 rm -r "$pkgdir"/usr/share/info