core/binutils to 2.34-3

This commit is contained in:
Kevin Mihelich 2020-05-14 12:45:46 +00:00
parent b86298c622
commit 57b175dee8

View file

@ -11,25 +11,27 @@ noautobuild=1
pkgname=binutils
pkgver=2.34
pkgrel=2
pkgrel=3
pkgdesc='A set of programs to assemble and manipulate binary and object files'
arch=(x86_64)
url='https://www.gnu.org/software/binutils/'
license=(GPL)
groups=(base-devel)
depends=(glibc zlib elfutils)
makedepends=('elfutils')
makedepends=(elfutils git)
options=(staticlibs !distcc !ccache)
source=(https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz{,.sig})
source=(git+https://sourceware.org/git/binutils-gdb.git#commit=$_commit)
#source=(https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz{,.sig})
_commit=a72427b1ae01304da0b5170e1e53f68c6d46c1de
validpgpkeys=(3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F)
md5sums=('664ec3a2df7805ed3464639aaae332d6'
'SKIP')
md5sums=('SKIP')
prepare() {
[[ ! -d binutils-gdb ]] && ln -s binutils-$pkgver binutils-gdb
mkdir -p binutils-build
#cd binutils-gdb
cd binutils-$pkgver
cd binutils-gdb
# hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
@ -44,7 +46,7 @@ build() {
[[ $CARCH == "armv7h" ]] && CONFIGFLAG="--host=armv7l-unknown-linux-gnueabihf --build=armv7l-unknown-linux-gnueabihf"
[[ $CARCH == "aarch64" ]] && CONFIGFLAG="--host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu"
"$srcdir/binutils-$pkgver/configure" \
"$srcdir/binutils-gdb/configure" \
--prefix=/usr \
--with-lib-path=/usr/lib:/usr/local/lib \
--with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues \