2023-08-23 13:45:28 +03:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
. /etc/os-release
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
# This script install packages for -DMOLD_ENABLE_QEMU_TESTS=1
|
|
|
|
# to enable cross-target tests.
|
|
|
|
#
|
|
|
|
# Feel free to send me a PR if your OS is not on this list.
|
|
|
|
|
|
|
|
case "$ID-$VERSION_ID" in
|
|
|
|
ubuntu-* | pop-* | linuxmint-* | debian-* | raspbian-*)
|
2023-09-03 15:47:34 +03:00
|
|
|
apt-get install -y qemu-user {gcc,g++}-{i686,aarch64,riscv64,powerpc,powerpc64,powerpc64le,s390x,sparc64,m68k,sh4,alpha}-linux-gnu {gcc,g++}-arm-linux-gnueabihf
|
2023-08-23 13:45:28 +03:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Error: don't know anything about build dependencies on $ID-$VERSION_ID"
|
|
|
|
exit 1
|
|
|
|
esac
|