diff options
Diffstat (limited to 'core/binutils/PKGBUILD')
-rw-r--r-- | core/binutils/PKGBUILD | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/core/binutils/PKGBUILD b/core/binutils/PKGBUILD index 550c845f3..4a950cdbb 100644 --- a/core/binutils/PKGBUILD +++ b/core/binutils/PKGBUILD @@ -1,23 +1,23 @@ -# $Id: PKGBUILD 145911 2012-01-04 01:24:51Z allan $ +# $Id: PKGBUILD 155399 2012-04-03 11:09:56Z allan $ # Maintainer: Allan McRae <allan@archlinux.org> # toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc pkgname=binutils pkgver=2.22 -pkgrel=4 -_date=20111227 +pkgrel=5 +_date=20120323 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.14' 'zlib') +depends=('glibc>=2.15' 'zlib') checkdepends=('dejagnu') options=('!libtool' '!distcc' '!ccache') install=binutils.install source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) -md5sums=('c2377089c15bb1a1bfaeca8d0e59dd4d') +md5sums=('de2ac4298732827f8af706fc24020330') mksource() { mkdir ${pkgname}-${_date} @@ -55,6 +55,11 @@ build() { cp -a bfd bfd-pic make -C bfd-pic clean make CFLAGS="$CFLAGS -fPIC -fvisibility=hidden" -C bfd-pic + + # Rebuild libopcodes.a with -fPIC + cp -a opcodes opcodes-pic + make -C opcodes-pic clean + make CFLAGS="$CFLAGS -fPIC" -C opcodes-pic } check() { @@ -75,6 +80,7 @@ package() { # install libraries rebuilt with -fPIC install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib + install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib # Remove Windows/Novell specific man pages rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}* |