summaryrefslogtreecommitdiff
path: root/core/binutils
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-04-28 16:56:01 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-04-28 16:56:01 -0300
commitac3cba40fe593c5e946ddfe2e43b43151eacd5e6 (patch)
tree01da08664f538e2f66166b9d3ca49d8b0c71a639 /core/binutils
parentfa720c332b8ed642441b8d8885142e9eac25f460 (diff)
toolchain
Diffstat (limited to 'core/binutils')
-rw-r--r--core/binutils/PKGBUILD25
1 files changed, 15 insertions, 10 deletions
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')