1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-11-10 00:48:06 +01:00
void-packages/common/build-helper/qemu.sh

14 lines
281 B
Bash

if [ "$CROSS_BUILD" ]; then
export QEMU_LD_PREFIX=${XBPS_CROSS_BASE}
if [[ $hostmakedepends != *"qemu-user"* ]]; then
hostmakedepends+=" qemu-user"
fi
fi
vtargetrun() {
if [ "$CROSS_BUILD" ]; then
"/usr/bin/qemu-${XBPS_TARGET_QEMU_MACHINE}-static" "$@"
else
"$@"
fi
}