mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
scripts/bootstrap.sh: workaround abuild bug
Current abuild has a bug that when CC is defined, it's used to guess build architecture. But during cross-compile setup it points to cross compiler and causing breakage. Export CBUILD after initial abuild functions.sh run to workaround this.
This commit is contained in:
parent
9ff904779e
commit
88b19d170e
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ CBUILDROOT="$(CTARGET=$TARGET_ARCH . /usr/share/abuild/functions.sh ; echo $CBUI
|
|||
. /usr/share/abuild/functions.sh
|
||||
[ -z "$CBUILD_ARCH" ] && die "abuild is too old (use 2.29.0 or later)"
|
||||
[ -z "$CBUILDROOT" ] && die "CBUILDROOT not set for $TARGET_ARCH"
|
||||
export CBUILD
|
||||
|
||||
# deduce aports directory
|
||||
[ -z "$APORTS" ] && APORTS=$(realpath $(dirname $0)/../)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue