[arch-commits] CVS update of arch/build/base/binutils (PKGBUILD)

andyrtr at archlinux.org andyrtr at archlinux.org
Wed May 2 20:24:06 UTC 2007


    Date: Wednesday, May 2, 2007 @ 16:24:06
  Author: andyrtr
    Path: /home/cvs-arch/arch/build/base/binutils

Modified: PKGBUILD (1.30 -> 1.31)

fixed an fPIC issue that appered when compiling anjuta2. apply the fix from Fedora


----------+
 PKGBUILD |   16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)


Index: arch/build/base/binutils/PKGBUILD
diff -u arch/build/base/binutils/PKGBUILD:1.30 arch/build/base/binutils/PKGBUILD:1.31
--- arch/build/base/binutils/PKGBUILD:1.30	Sat Apr 28 12:17:36 2007
+++ arch/build/base/binutils/PKGBUILD	Wed May  2 16:24:06 2007
@@ -1,10 +1,11 @@
-# $Id: PKGBUILD,v 1.30 2007/04/28 16:17:36 jgc Exp $
+# $Id: PKGBUILD,v 1.31 2007/05/02 20:24:06 andyrtr Exp $
 # Maintainer: judd <jvinet at zeroflux.org>
 pkgname=binutils
 pkgver=2.17
-pkgrel=3
+pkgrel=3.1
 pkgdesc="A set of programs to assemble and manipulate binary and object files"
-arch=(i686)
+arch=(i686 x86_64)
+license=(GPL)
 options=('nolibtool')
 url="http://sources.redhat.com/binutils"
 depends=('glibc')
@@ -22,5 +23,14 @@
 
   make tooldir=${startdir}/pkg/usr || return 1
   make prefix=${startdir}/pkg/usr tooldir=${startdir}/pkg/usr install
+
+  if [ "${CARCH}" = "x86_64" ]; then
+    # Rebuild libiberty.a with -fPIC
+    make -C libiberty clean
+    make CFLAGS="$CFLAGS -fPIC" -C libiberty
+    install -m 644 libiberty/libiberty.a ${startdir}/pkg/usr/lib
+    # install -m 644 include/libiberty.h ${startdir}/pkg/usr/include
+  fi
+
   rm -f ${startdir}/pkg/usr/man/man1/{dlltool,nlmconv,windres}*
 }




More information about the arch-commits mailing list