Index: tclvfs/build.sh ================================================================== --- tclvfs/build.sh +++ tclvfs/build.sh @@ -57,10 +57,21 @@ echo "Applying: ${patch}" ${PATCH:-patch} -p1 < "${patch}" done cp generic/vfs.c . + + # If we are building for Win32, we need to define TEA_PLATFORM so that + # the right private directory is found + BUILDTYPE="$(basename "${TCLCONFIGDIR}")" + if [ "${BUILDTYPE}" = "win" ]; then + TEA_PLATFORM="windows" + export TEA_PLATFORM + + CFLAGS="${CFLAGS} -I${TCLCONFIGDIR}" + export CFLAGS + fi # Build static version ./configure --disable-shared --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA} ${MAKE:-make} || exit 1 ${MAKE:-make} install