Index: README ================================================================== --- README +++ README @@ -144,10 +144,15 @@ 10. KC_TCL_STATICPKGS Set this variable to the value "1" to attempt to force the packages included in the "pkgs" directory of Tcl 8.6+ to be compiled statically + 11. KITCREATOR_STATIC_KITDLL + Set this variable to the value "1" to build a static KitDLL. + This only has an affect when KITCREATOR_PKGS specifies that + "kitdll" is to be built (e.g., KITCREATOR_PKGS='kitdll') + Cross compiling Environment Variables: 1. CC C compiler e.g. i686-pc-mingw32-gcc Index: kitsh/build.sh ================================================================== --- kitsh/build.sh +++ kitsh/build.sh @@ -113,11 +113,15 @@ # Cleanup rm -f kit kit.exe tclsh tclsh.exe # Determine if target is KitDLL or KitSH if [ "${KITTARGET}" = "kitdll" ]; then - CONFIGUREEXTRA="${CONFIGUREEXTRA} --enable-kitdll=static" + if [ "${KITCREATOR_STATIC_KITDLL}" = '1' ]; then + CONFIGUREEXTRA="${CONFIGUREEXTRA} --enable-kitdll=static" + else + CONFIGUREEXTRA="${CONFIGUREEXTRA} --enable-kitdll" + fi fi # Compile Kit if [ -z "${ZLIBDIR}" ]; then echo "Running: ./configure --with-tcl=\"${TCLCONFIGDIR}\" ${CONFIGUREEXTRA}"