From ac3cba40fe593c5e946ddfe2e43b43151eacd5e6 Mon Sep 17 00:00:00 2001 From: Nicolas Reynolds Date: Thu, 28 Apr 2011 16:56:01 -0300 Subject: toolchain --- core/binutils/PKGBUILD | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'core/binutils') diff --git a/core/binutils/PKGBUILD b/core/binutils/PKGBUILD index 30ac1896f..61010099b 100644 --- a/core/binutils/PKGBUILD +++ b/core/binutils/PKGBUILD @@ -4,9 +4,9 @@ # toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc pkgname=binutils -pkgver=2.21 +pkgver=2.21.51 pkgrel=6 -_date=20110326 +_date=20110428 pkgdesc="A set of programs to assemble and manipulate binary and object files" arch=('i686' 'x86_64' 'mips64el') url="http://www.gnu.org/software/binutils/" @@ -16,8 +16,9 @@ depends=('glibc>=2.13' 'zlib') makedepends=('dejagnu') options=('!libtool' '!distcc' '!ccache') install=binutils.install -source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) -md5sums=('884dcbc87d4722b152aea72312356da1') +#source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2) +#md5sums=('884dcbc87d4722b152aea72312356da1') +source=(ftp://sourceware.org/pub/$pkgname/snapshots/$pkgname-$pkgver.tar.bz2) mksource() { mkdir ${pkgname}-${_date} @@ -31,17 +32,19 @@ mksource() { build() { cd ${srcdir} - mkdir binutils-build && cd binutils-build + ln -s binutils-$pkgver binutils + mkdir binutils-build && cd binutils-build [[ $CARCH == "x86_64" ]] && CONFIGFLAG="--enable-64-bit-bfd --disable-multilib" + [[ $CARCH == "mips64el" ]] && CONFIGFLAG="--disable-nls --disable-multilib" - ${srcdir}/binutils/configure --prefix=/usr \ - --enable-ld=default --enable-gold \ - --enable-plugins --enable-threads \ - --enable-shared $CONFIGFLAG + ${srcdir}/binutils/configure --prefix=/usr \ + --enable-ld=default --enable-gold \ + --enable-plugins --enable-threads \ + --enable-shared $CONFIGFLAG # This checks the host environment and makes sure all the necessary tools are available to compile Binutils. - make configure-host + make configure-host make tooldir=${pkgdir}/usr } @@ -81,3 +84,5 @@ package() { echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" >${pkgdir}/usr/lib/libbfd.so echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" >${pkgdir}/usr/lib/libopcodes.so } + +md5sums=('0d06cb7a0b58ff6108adeacc72be2972') -- cgit v1.2.3-54-g00ecf