diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-07-08 07:07:17 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-07-08 08:14:39 +0000 |
commit | f7bf2ccff030e5f200f104711d81d10d7bcf8eb0 (patch) | |
tree | ec456fada3dbcb4cb45c96b1e73b719b982b8904 /main/binutils/APKBUILD | |
parent | 0f582e6ac488c5881c84136f82b55686369d3b53 (diff) | |
download | aports-f7bf2ccff030e5f200f104711d81d10d7bcf8eb0.tar.bz2 aports-f7bf2ccff030e5f200f104711d81d10d7bcf8eb0.tar.xz |
main/binutils: remove libiberty from cross builds
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 |