Index: tk/build.sh ================================================================== --- tk/build.sh +++ tk/build.sh @@ -174,12 +174,14 @@ # Remove broken pre-generated Makfiles rm -f GNUmakefile Makefile makefile if [ "${dir}" = "win" ]; then # Statically link Tk to Tclkit if we are compiling for - # Windows - STATICTK="1" + # Windows unless otherwise requested + if [ -z "${STATICTK}" ]; then + STATICTK="1" + fi if [ "${win64}" = "1" ]; then # Mingw32 for AMD64 requires this, apparently CPPFLAGS="${CPPFLAGS} -D_WIN32_IE=0x0501" CFLAGS="${CFLAGS} -D_WIN32_IE=0x0501"