Diff

Differences From Artifact [78ecf55e1a]:

To Artifact [7a25fae137]:


    71     71   
    72     72   			## Long-standing bug in Tcl
    73     73   			echo '#undef strtod' > "${TCLPRIVATE}/compat/strtod.c.new"
    74     74   			cat "${TCLPRIVATE}/compat/strtod.c" >> "${TCLPRIVATE}/compat/strtod.c.new"
    75     75   			cat "${TCLPRIVATE}/compat/strtod.c.new" > "${TCLPRIVATE}/compat/strtod.c"
    76     76   			rm -f "${TCLPRIVATE}/compat/strtod.c.new"
    77     77   
    78         -			for dir in unix win macosx; do
           78  +			tcl_platform_dir='unix win macosx'
           79  +
           80  +			case "${CC}" in
           81  +				*mingw*)
           82  +					# If the compiler looks like Mingw, use Windows
           83  +					tcl_platform_dir='win'
           84  +					;;
           85  +				*-*-*)
           86  +					# Default for cross-compiling is UNIX
           87  +					tcl_platform_dir='unix'
           88  +					;;
           89  +			esac
           90  +
           91  +			for dir in ${tcl_platform_dir}; do
    79     92   				cd "${TCLPRIVATE}/${dir}" || exit 1
    80     93   
    81     94   				echo " Executing: ./configure --enable-threads ${CONFIGUREEXTRA} --prefix=\"${TCLINSTDIR}\""
    82     95   				./configure --enable-threads ${CONFIGUREEXTRA} --prefix="${TCLINSTDIR}"
    83     96   
    84     97   				echo " Executing: ${MAKE:-make}"
    85     98   				${MAKE:-make} || (