mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
main/binutils: remove libiberty from cross builds
This commit is contained in:
parent
0f582e6ac4
commit
f7bf2ccff0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user