1 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
2 # Contributor: Martin Schmölzer <mschmoelzer@gmail.com>
5 pkgname=$_target-binutils
8 pkgdesc='A set of programs to assemble and manipulate binary and object files for the ARM EABI (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 sha1sums=('887d24c3799e9fe02646e04e73b5ac2cc3e7188f'
16 sha256sums=('f8298eb153a4b37d112e945aa5cb2850040bcf26a3ea65b5a715c83afe05e48a'
18 validpgpkeys=('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/arm-none-eabi-{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