diff options
Diffstat (limited to 'main/binutils/APKBUILD')
-rw-r--r-- | main/binutils/APKBUILD | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/main/binutils/APKBUILD b/main/binutils/APKBUILD index f65fd49f1c..1c47b3718a 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 |