mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
core/binutils to 2.22-7
This commit is contained in:
parent
d8c09d9892
commit
6f5969b0ce
1 changed files with 10 additions and 4 deletions
|
@ -12,19 +12,19 @@ noautobuild=1
|
|||
|
||||
pkgname=binutils
|
||||
pkgver=2.22
|
||||
pkgrel=4
|
||||
_date=20111227
|
||||
pkgrel=7
|
||||
_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}
|
||||
|
@ -66,6 +66,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() {
|
||||
|
@ -86,6 +91,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}*
|
||||
|
|
Loading…
Reference in a new issue