Posted to tcl by Colin at Mon May 04 00:48:08 GMT 2015view raw
- #! /bin/sh
- PATH=/opt/osxcross/target/bin/:${PATH}
- HOST=i386-apple-darwin13
- BUILD=`gcc -dumpmachine`
- export HOST PATH BUILD
- AR=${HOST}-ar
- CC=${HOST}-cc
- CXX=${HOST}-c++
- RANLIB=${HOST}-ranlib
- STRIP=${HOST}-strip
- export AR CC CXX RANLIB STRIP
- KITCREATOR_PKGS='tcllib udp'
- export KITCREATOR_PKGS
- # When cross-compiling Tcl it cannot detect these things and so assumes failure
- # This in turn creates linking issues because it will define the replacements
- # in the main library and stubs library, which we may both link to
- ac_cv_func_memcmp_working=yes
- tcl_cv_strstr_unbroken=ok
- tcl_cv_strtoul_unbroken=ok
- tcl_cv_strtod_unbroken=ok
- tcl_cv_strtod_buggy=ok
- tcl_cv_sys_version=Darwin
- 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
- ./kitcreator retry "$@" CC=${CC} --enable-threads --host=${HOST} --build=${BUILD}