1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-12-24 21:11:08 +01:00
void-packages/common/build-helper/qemu.sh

13 lines
260 B
Bash
Raw Normal View History

2024-03-29 08:12:19 +01:00
if [ "$CROSS_BUILD" ]; then
export QEMU_LD_PREFIX=${XBPS_CROSS_BASE}
hostmakedepends+=" qemu-user-${XBPS_TARGET_QEMU_MACHINE/x86_64/amd64}"
2024-03-29 08:12:19 +01:00
fi
vtargetrun() {
if [ "$CROSS_BUILD" ]; then
"/usr/bin/qemu-${XBPS_TARGET_QEMU_MACHINE}" "$@"
2024-03-29 08:12:19 +01:00
else
"$@"
fi
}