void-packages/common/build-helper/qemu.sh
classabbyamp 66e9495c31 common/build-helper/qemu: only install the relevant user emulator
now that the package is split, we don't have to install every emulator
under the sun.
2024-09-20 03:58:42 -04:00

12 lines
267 B
Bash

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