summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-01-14 11:11:58 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-01-14 11:11:58 -0300
commitdfb8e860020596bb7dd23d18fe12c6a517a091ae (patch)
tree222be1acf531347353339c10ca77752615b967bd /cross
parent6b82531c7cd628b3abbec5cf7b63b5dd41bafa22 (diff)
cross/cross-mips64el-unknown-linux-gnu-binutils-2.22-7
Diffstat (limited to 'cross')
-rw-r--r--cross/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD39
1 files changed, 17 insertions, 22 deletions
diff --git a/cross/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD b/cross/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD
index e30319d19..82260cc58 100644
--- a/cross/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD
+++ b/cross/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD
@@ -5,9 +5,11 @@ _target="mips64el-unknown-linux-gnu"
# We don't add the target because it duplicates it /usr/lib/$target/$target
_sysroot="/usr/lib"
+unset CFLAGS CXXFLAGS LDFLAGS
+
pkgname=cross-${_target}-binutils
pkgver=2.22
-pkgrel=6
+pkgrel=7
pkgdesc="A set of programs to assemble and manipulate binary and object files for the MIPS architecture"
url="http://www.gnu.org/software/binutils/"
arch=('i686' 'x86_64')
@@ -19,19 +21,19 @@ md5sums=('ee0f10756c84979622b992a4a61ea3f5')
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
- ./configure \
- --prefix=${_sysroot} \
- --bindir=/usr/bin --program-prefix=${_target}- \
- --target=${_target} --build=$CHOST --host=$CHOST \
- --disable-nls \
- --disable-werror \
- --disable-multilib \
- #--with-gcc --with-gnu-as --with-gnu-ld \
- #--without-included-gettext \
- #--with-lib-path=${_sysroot} \
- #--with-sysroot=${_sysroot}/${_target} \
-
- make configure-host
+ CFLAGS=" -pipe "\
+ CXXFLAGS=" -pipe "\
+ ./configure --build=${CHOST} \
+ --host=${CHOST} \
+ --target=${_target} \
+ --prefix=${_sysroot} \
+ --disable-nls \
+ --disable-multilib \
+ --disable-werror \
+ --enable-ld=yes \
+ --enable-gold=no \
+ --with-sysroot=${_sysroot}/${_target}
+
make
}
@@ -41,12 +43,5 @@ package() {
make DESTDIR=${pkgdir} install
mv ${pkgdir}/usr/lib/lib/libiberty.a ${pkgdir}${_sysroot}/${_target}/lib/
- rm -r ${pkgdir}/usr/lib/lib
-
- msg "Removing duplicate files..."
- # remove these files as they are already in the system
- # (with native binutils)
- rm -Rf ${pkgdir}${_sysroot}/share/{man,info}
- # remove conflicting binaries
- find ${pkgdir}/usr/bin/ -type f -not -name "${_target}-*" -delete
+ rm -r ${pkgdir}/usr/lib/lib ${pkgdir}/usr/lib/share
}