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

andyrtr at archlinux.org andyrtr at archlinux.org
Sun Jun 24 11:21:14 UTC 2007


    Date: Sunday, June 24, 2007 @ 07:21:14
  Author: andyrtr
    Path: /home/cvs-arch/arch/build/base/binutils

Modified: PKGBUILD (1.33 -> 1.34)

updatepkg bintuils 2.17.50.0.17, new stable gcc snapshot 4.2-20070620 and glibc rebuilt/make sure it won't link to gd


----------+
 PKGBUILD |   27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)


Index: arch/build/base/binutils/PKGBUILD
diff -u arch/build/base/binutils/PKGBUILD:1.33 arch/build/base/binutils/PKGBUILD:1.34
--- arch/build/base/binutils/PKGBUILD:1.33	Sun May 20 09:41:55 2007
+++ arch/build/base/binutils/PKGBUILD	Sun Jun 24 07:21:14 2007
@@ -1,35 +1,46 @@
-# $Id: PKGBUILD,v 1.33 2007/05/20 13:41:55 jgc Exp $
+# $Id: PKGBUILD,v 1.34 2007/06/24 11:21:14 andyrtr Exp $
 # Maintainer: judd <jvinet at zeroflux.org>
+
+# compile always twice: first binutils, then gcc, then binutils again
+
 pkgname=binutils
-pkgver=2.17
-pkgrel=4
+pkgver=2.17.50.0.17
+pkgrel=1
 pkgdesc="A set of programs to assemble and manipulate binary and object files"
 arch=(i686 x86_64)
 license=(GPL)
-options=('nolibtool')
+options=('!libtool' '!makeflags')
 url="http://sources.redhat.com/binutils"
 depends=('glibc>=2.6')
+makedepends=('texinfo>=4.8a')
 source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('e26e2e06b6e4bf3acf1dc8688a94c0d1')
+md5sums=('f1852ef43d7539480c77f813224ef81c')
 
 build() {
   cd ${startdir}/src/${pkgname}-${pkgver}
 
+  mkdir build
+  cd build
+
+  CC="gcc -L`pwd`/bfd/.libs/"
   if [ "${CARCH}" = "x86_64" ]; then
-    ./configure --prefix=/usr --enable-shared --enable-64-bit-bfd --disable-multilib
+    ../configure --prefix=/usr --enable-shared --enable-64-bit-bfd --disable-multilib 
   else
-    ./configure --prefix=/usr --enable-shared
+    ../configure --prefix=/usr --enable-shared
   fi
 
+  # This checks the host environment and makes sure all the necessary tools are available to compile Binutils.
+  make configure-host || return 1
+
   make tooldir=${startdir}/pkg/usr || return 1
   make prefix=${startdir}/pkg/usr tooldir=${startdir}/pkg/usr install
+  install -m 644 ../include/libiberty.h ${startdir}/pkg/usr/include
 
   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