Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2022
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.75 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Put me in an empty folder and run.
  4.  
  5. ROOT=$(pwd)
  6.  
  7. git clone --depth 1 https://github.com/jessicah/cross-compiler.git
  8. git clone --depth 1 https://github.com/libsdl-org/SDL-1.2.git
  9.  
  10. pushd cross-compiler
  11.         ./build-rootfs.sh x86_gcc2h --rootfsdir ${ROOT}/cross
  12. popd
  13.  
  14. TRIPLE="i586-pc-haiku"
  15. INSTALLED=${ROOT}/installed
  16.  
  17. export PATH=${ROOT}/cross/generated/cross-tools-x86_gcc2/bin:${PATH}
  18.  
  19. mkdir -p build
  20. pushd build
  21.         ../SDL-1.2/configure \
  22.                 --target=${TRIPLE} \
  23.                 --host=${TRIPLE} \
  24.                 --build=x86_64-linux \
  25.                 --enable-static \
  26.                 --disable-shared \
  27.                 --disable-loadso \
  28.                 --prefix=${INSTALLED}
  29.         make
  30. popd
  31.  
  32.  
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement