core/binutils to 2.29.0-1

This commit is contained in:
Kevin Mihelich 2017-09-09 16:46:10 +00:00
parent 32c5f62036
commit b4fc942456

View file

@ -1,10 +1,8 @@
# $Id: PKGBUILD 145910 2012-01-04 01:24:50Z allan $
# $Id$
# Maintainer: Allan McRae <allan@archlinux.org>
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
# build from head of release branch as bug fix releases are rare
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - Added a CONFIGFLAG for ARM, defining our build hosts
# - --disable-sim, files provided by gdb
@ -13,28 +11,28 @@
noautobuild=1
pkgname=binutils
pkgver=2.28.0
pkgrel=4
_commit=09e514a92b6bb7c910051a7fafc9fded8a687848
pkgdesc="A set of programs to assemble and manipulate binary and object files"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/binutils/"
license=('GPL')
pkgver=2.29.0
pkgrel=1
_commit=dd9a28c0966d13924fbd1096a724ae334954d830
pkgdesc='A set of programs to assemble and manipulate binary and object files'
arch=(i686 x86_64)
url='http://www.gnu.org/software/binutils/'
license=(GPL)
groups=('base-devel')
depends=('glibc>=2.25' 'zlib')
makedepends=('git')
checkdepends=('dejagnu' 'bc')
options=('staticlibs' '!distcc' '!ccache')
depends=('glibc>=2.26' zlib)
makedepends=(git)
checkdepends=(dejagnu bc)
options=(staticlibs !distcc !ccache)
source=(git://sourceware.org/git/binutils-gdb.git#commit=${_commit})
md5sums=('SKIP')
prepare() {
mkdir -p binutils-build
cd binutils-gdb
# hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
mkdir ${srcdir}/binutils-build
}
build() {
@ -46,7 +44,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"
../binutils-gdb/configure \
"$srcdir/binutils-gdb/configure" \
--prefix=/usr \
--with-lib-path=/usr/lib:/usr/local/lib \
--with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues \
@ -60,12 +58,11 @@ build() {
--with-pic \
--disable-werror \
--disable-gdb \
--with-system-zlib \
--disable-sim \
$CONFIGFLAG
# check the host environment and makes sure all the necessary tools are available
make configure-host
make tooldir=/usr
}
@ -79,13 +76,13 @@ check() {
package() {
cd binutils-build
make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
make prefix="$pkgdir/usr" tooldir="$pkgdir/usr" install
# Remove unwanted files
rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
rm -f "$pkgdir"/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
# No shared linking to these files outside binutils
rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
echo "INPUT ( /usr/lib/libbfd.a -liberty -lz -ldl )" > "$pkgdir"/usr/lib/libbfd.so
echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" > "$pkgdir"/usr/lib/libopcodes.so
rm -f "$pkgdir"/usr/lib/lib{bfd,opcodes}.so
echo "INPUT( /usr/lib/libbfd.a -liberty -lz -ldl )" > "$pkgdir/usr/lib/libbfd.so"
echo "INPUT( /usr/lib/libopcodes.a -lbfd )" > "$pkgdir/usr/lib/libopcodes.so"
}