Diff

Differences From Artifact [befde2796f]:

To Artifact [b2a99c5623]:


    55     55   		fi
    56     56   
    57     57   		echo "Applying: ${patch}"
    58     58   		${PATCH:-patch} -p1 < "${patch}"
    59     59   	done                                                                                                                               
    60     60   
    61     61   	cp generic/vfs.c .
           62  +
           63  +	# If we are building for Win32, we need to define TEA_PLATFORM so that
           64  +	# the right private directory is found
           65  +	BUILDTYPE="$(basename "${TCLCONFIGDIR}")"
           66  +	if [ "${BUILDTYPE}" = "win" ]; then
           67  +		TEA_PLATFORM="windows"
           68  +		export TEA_PLATFORM
           69  +
           70  +		CFLAGS="${CFLAGS} -I${TCLCONFIGDIR}"
           71  +		export CFLAGS
           72  +	fi
    62     73   
    63     74   	# Build static version
    64     75   	./configure --disable-shared --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
    65     76   	${MAKE:-make} || exit 1
    66     77   	${MAKE:-make} install
    67     78   
    68     79   	mkdir "${OUTDIR}/lib" || exit 1