-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.sh
executable file
·20 lines (17 loc) · 912 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
# Install system dependencies
dpkg --add-architecture i386
apt update
apt install -y make cmake git gcc g++ libxml2-dev libssl-dev zlib1g-dev{,:i386} libgl-dev{,:i386} {gcc,g++}-mipsel-linux-gnu curl clang unzip {gcc,g++}-arm-linux-gnueabi google-android-ndk-installer {gcc,g++}-i686-linux-gnu {gcc,g++}-mingw-w64 libxext-dev software-properties-common
# Needed for compiler-rt in osxcross (https://github.com/tpoechtrager/osxcross/issues/214#issuecomment-595279668)
ln -sf /usr/bin/llvm-config-10 /usr/bin/llvm-config
# macOS Only
git clone https://github.com/tpoechtrager/osxcross
cd osxcross/tarballs
curl -L -O https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz
curl -L -O https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.14.sdk.tar.xz
cd ..
SDK_VERSION=11.3 ./build.sh
SDK_VERSION=10.14 ./build.sh
./build_compiler_rt.sh
cd ..