From f7bf2ccff030e5f200f104711d81d10d7bcf8eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 8 Jul 2016 07:07:17 +0000 Subject: [PATCH] main/binutils: remove libiberty from cross builds --- main/binutils/APKBUILD | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main/binutils/APKBUILD b/main/binutils/APKBUILD index f65fd49f1c8..1c47b3718af 100644 --- a/main/binutils/APKBUILD +++ b/main/binutils/APKBUILD @@ -37,7 +37,13 @@ prepare() { build() { local _sysroot=/ - [ "$CHOST" != "$CTARGET" ] && _sysroot="$CBUILDROOT" + local _cross_configure="--enable-install-libiberty" + + if [ "$CHOST" != "$CTARGET" ]; then + _sysroot="$CBUILDROOT" + _cross_configure="--disable-install-libiberty" + fi + cd "$_builddir" ./configure \ --build=$CBUILD \ @@ -54,7 +60,7 @@ build() { --enable-gold=yes \ --enable-64-bit-bfd \ --enable-plugins \ - --enable-install-libiberty \ + $_cross_configure \ --disable-werror \ --disable-nls \ || return 1