Index: server/buildpkgs/build_all.sh ================================================================== --- server/buildpkgs/build_all.sh +++ server/buildpkgs/build_all.sh @@ -73,11 +73,24 @@ echo '#undef strtod' > "${TCLPRIVATE}/compat/strtod.c.new" cat "${TCLPRIVATE}/compat/strtod.c" >> "${TCLPRIVATE}/compat/strtod.c.new" cat "${TCLPRIVATE}/compat/strtod.c.new" > "${TCLPRIVATE}/compat/strtod.c" rm -f "${TCLPRIVATE}/compat/strtod.c.new" - for dir in unix win macosx; do + tcl_platform_dir='unix win macosx' + + case "${CC}" in + *mingw*) + # If the compiler looks like Mingw, use Windows + tcl_platform_dir='win' + ;; + *-*-*) + # Default for cross-compiling is UNIX + tcl_platform_dir='unix' + ;; + esac + + for dir in ${tcl_platform_dir}; do cd "${TCLPRIVATE}/${dir}" || exit 1 echo " Executing: ./configure --enable-threads ${CONFIGUREEXTRA} --prefix=\"${TCLINSTDIR}\"" ./configure --enable-threads ${CONFIGUREEXTRA} --prefix="${TCLINSTDIR}"