@@ -68,10 +68,16 @@ export TEA_PLATFORM CFLAGS="${CFLAGS} -I${TCLCONFIGDIR}" export CFLAGS fi + + # If we are building for KitDLL, compile with '-fPIC' + if [ "${KITTARGET}" = "kitdll" ]; then + CFLAGS="${CFLAGS} -fPIC" + export CFLAGS + fi # Build static version echo "Running: ./configure --disable-shared --prefix=\"${INSTDIR}\" --exec-prefix=\"${INSTDIR}\" --with-tcl=\"${TCLCONFIGDIR}\" ${CONFIGUREEXTRA}" ./configure --disable-shared --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}