Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Put me in an empty folder and run.
- ROOT=$(pwd)
- git clone --depth 1 https://github.com/jessicah/cross-compiler.git
- git clone --depth 1 https://github.com/libsdl-org/SDL-1.2.git
- pushd cross-compiler
- ./build-rootfs.sh x86_gcc2h --rootfsdir ${ROOT}/cross
- popd
- TRIPLE="i586-pc-haiku"
- INSTALLED=${ROOT}/installed
- export PATH=${ROOT}/cross/generated/cross-tools-x86_gcc2/bin:${PATH}
- mkdir -p build
- pushd build
- ../SDL-1.2/configure \
- --target=${TRIPLE} \
- --host=${TRIPLE} \
- --build=x86_64-linux \
- --enable-static \
- --disable-shared \
- --disable-loadso \
- --prefix=${INSTALLED}
- make
- popd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement