linux-to-win-cross-configure.sh 402 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. case "$1" in
  3. w32)
  4. compiler_name=i686-w64-mingw32
  5. ;;
  6. w64)
  7. compiler_name=x86_64-w64-mingw32
  8. ;;
  9. *)
  10. echo "$0 (w32|w64) <other args>"
  11. exit 0
  12. ;;
  13. esac
  14. shift
  15. build_cpu=$(dpkg-architecture -qDEB_BUILD_GNU_CPU)
  16. build_host=$build_cpu-linux
  17. ./configure --host=$compiler_name --target=$compiler_name --build=$build_host \
  18. --program-prefix='' --disable-sqlite --disable-static $@