build-style/waf3: rely on qemu build helper in cross builds
This commit is contained in:
parent
e4fc5c4350
commit
7d68e8f4d2
1 changed files with 9 additions and 1 deletions
|
@ -3,8 +3,16 @@
|
||||||
#
|
#
|
||||||
do_configure() {
|
do_configure() {
|
||||||
: ${configure_script:=waf}
|
: ${configure_script:=waf}
|
||||||
|
local cross_args
|
||||||
|
|
||||||
PYTHON=/usr/bin/python3 python3 ${configure_script} configure --prefix=/usr --libdir=/usr/lib ${configure_args}
|
if [[ $build_helper = *"qemu"* ]] && [ "$CROSS_BUILD" ]; then
|
||||||
|
# If the qemu build helper is specified, use it for cross builds
|
||||||
|
cross_args="--cross-compile --hostcc=${CC_FOR_BUILD}
|
||||||
|
--cross-execute=qemu-${XBPS_TARGET_QEMU_MACHINE}-static"
|
||||||
|
fi
|
||||||
|
|
||||||
|
PYTHON=/usr/bin/python3 python3 ${configure_script} configure \
|
||||||
|
--prefix=/usr --libdir=/usr/lib ${configure_args} ${cross_args}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue