diff options
Diffstat (limited to 'core/binutils')
-rw-r--r-- | core/binutils/PKGBUILD | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/core/binutils/PKGBUILD b/core/binutils/PKGBUILD index 0d1d6a0bc..af0463b36 100644 --- a/core/binutils/PKGBUILD +++ b/core/binutils/PKGBUILD @@ -8,7 +8,7 @@ pkgver=2.21 pkgrel=8 _date=20110430 pkgdesc="A set of programs to assemble and manipulate binary and object files" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://www.gnu.org/software/binutils/" license=('GPL') groups=('base') @@ -37,14 +37,17 @@ build() { patch -Np1 -i $srcdir/binutils-2.21-strip-segfault.patch 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-multilib --disable-werror" - ${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 @@ -87,3 +90,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') |