Diff

Differences From Artifact [2ffb8472f5]:

To Artifact [354ba5de6f]:


    54     54   		fi
    55     55   
    56     56   		echo "Applying: ${patch}"
    57     57   		${PATCH:-patch} -p1 < "${patch}"
    58     58   	done
    59     59   
    60     60   	cd "${BUILDDIR}/unix" || exit 1
           61  +
           62  +	# If we are building for Win32, we need to define "BUILD_tcl" so that
           63  +	# TCL_STORAGE_CLASS gets defined as DLLEXPORT, to make static linking
           64  +	# work
           65  +	BUILDTYPE="$(basename "${TCLCONFIGDIR}")"
           66  +	if [ "${BUILDTYPE}" = "win" ]; then
           67  +		CPPFLAGS="${CPPFLAGS} -DBUILD_tcl=1"
           68  +		export CPPFLAGS
           69  +	fi
    61     70   
    62     71   	# Build static libraries for linking against Tclkit
    63     72   	./configure --disable-shared --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}/../generic" ${CONFIGUREEXTRA}
    64         -	${MAKE:-make} tcllibdir="${INSTDIR}/lib" || exit 1
    65         -	${MAKE:-make} tcllibdir="${INSTDIR}/lib" install
           73  +	${MAKE:-make} tcllibdir="${INSTDIR}/lib" AR="${AR:-ar}" RANLIB="${RANLIB:-ranlib}" || exit 1
           74  +	${MAKE:-make} tcllibdir="${INSTDIR}/lib" AR="${AR:-ar}" RANLIB="${RANLIB:-ranlib}" install
    66     75   
    67     76   	exit 0
    68     77   ) || exit 1
    69     78   
    70     79   exit 0