[arch-commits] Commit in binutils/trunk (PKGBUILD)

Allan McRae allan at archlinux.org
Fri Apr 16 11:58:23 UTC 2010


    Date: Friday, April 16, 2010 @ 07:58:22
  Author: allan
Revision: 77602

upgpkg: binutils 2.20.1-2
gcc-4.5 toolchain rebuild, rebuild libiberty.a and libbfd.a on both arches, hide symbols in libbfd.a

Modified:
  binutils/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-04-16 11:54:46 UTC (rev 77601)
+++ PKGBUILD	2010-04-16 11:58:22 UTC (rev 77602)
@@ -5,14 +5,14 @@
 
 pkgname=binutils
 pkgver=2.20.1
-pkgrel=1
+pkgrel=2
 _date=20100318
 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')
-depends=('glibc>=2.11.1-2' 'zlib')
+depends=('glibc>=2.11.1-3' 'zlib')
 options=('!libtool' '!distcc' '!ccache')
 install=binutils.install
 source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
@@ -46,20 +46,24 @@
   make configure-host || return 1
 
   make tooldir=${pkgdir}/usr || return 1
+}
+
+package() {
+  cd ${srcdir}/build
   make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
   install -m644 ${srcdir}/include/libiberty.h ${pkgdir}/usr/include
 
-  if [ "${CARCH}" = "x86_64" ]; then
-    # Rebuild libiberty.a with -fPIC
-    make -C libiberty clean
-    make CFLAGS="$CFLAGS -fPIC" -C libiberty
-    install -m644 libiberty/libiberty.a ${pkgdir}/usr/lib
-    # Rebuild libbfd.a with -fPIC
-    make -C bfd clean
-    make CFLAGS="$CFLAGS -fPIC" -C bfd
-    install -m644 bfd/libbfd.a ${pkgdir}/usr/lib
-  fi
+  # Rebuild libiberty.a with -fPIC
+  make -C libiberty clean
+  make CFLAGS="$CFLAGS -fPIC" -C libiberty
+  install -m644 libiberty/libiberty.a ${pkgdir}/usr/lib
 
+  # Rebuild libbfd.a with -fPIC
+  make -C bfd clean
+  # hidden visability prevent 3rd party shared libraries exporting bfd non-stable API
+  make CFLAGS="$CFLAGS -fPIC -fvisibility=hidden" -C bfd
+  install -m644 bfd/libbfd.a ${pkgdir}/usr/lib
+
   rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
 
   # Remove these symlinks, with binutils prereleases they are not ABI stable.




More information about the arch-commits mailing list