Index: itcl/build.sh ================================================================== --- itcl/build.sh +++ itcl/build.sh @@ -64,10 +64,26 @@ else cp -rp ../buildsrc/* './' fi cd "${BUILDDIR}" || exit 1 + + # Work around bug where Itcl v3.4 picks up wrong platform when cross-compiling + case "${TCLCONFIGDIR}" in + */win) + TEA_PLATFORM="windows" + export TEA_PLATFORM + ;; + *) + TEA_PLATFORM="unix" + export TEA_PLATFORM + ;; + esac + sed 's@TEA_PLATFORM=@test -z "$TEA_PLATFORM" \&\& &@' configure > configure.new && cat configure.new > configure + rm -f configure.new + + # Build ./configure --enable-shared --disable-symbols --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA} ${MAKE:-make} || exit 1 ${MAKE:-make} install