Posted to tcl by Colin at Mon May 04 00:48:08 GMT 2015view raw

  1. #! /bin/sh
  2. PATH=/opt/osxcross/target/bin/:${PATH}
  3. HOST=i386-apple-darwin13
  4. BUILD=`gcc -dumpmachine`
  5. export HOST PATH BUILD
  6.  
  7. AR=${HOST}-ar
  8. CC=${HOST}-cc
  9. CXX=${HOST}-c++
  10. RANLIB=${HOST}-ranlib
  11. STRIP=${HOST}-strip
  12. export AR CC CXX RANLIB STRIP
  13.  
  14. KITCREATOR_PKGS='tcllib udp'
  15. export KITCREATOR_PKGS
  16.  
  17. # When cross-compiling Tcl it cannot detect these things and so assumes failure
  18. # This in turn creates linking issues because it will define the replacements
  19. # in the main library and stubs library, which we may both link to
  20. ac_cv_func_memcmp_working=yes
  21. tcl_cv_strstr_unbroken=ok
  22. tcl_cv_strtoul_unbroken=ok
  23. tcl_cv_strtod_unbroken=ok
  24. tcl_cv_strtod_buggy=ok
  25. tcl_cv_sys_version=Darwin
  26. export ac_cv_func_memcmp_working tcl_cv_strstr_unbroken tcl_cv_strtoul_unbroken tcl_cv_strtod_unbroken tcl_cv_strtod_buggy tcl_cv_sys_version
  27.  
  28. ./kitcreator retry "$@" CC=${CC} --enable-threads --host=${HOST} --build=${BUILD}
  29.