diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-26 21:01:23 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-26 21:01:23 (GMT) |
commit | 27c1ef5872d95f6f8e442c9258454630bc6489a4 (patch) | |
tree | 993775500dfb7c747f221147c30d72cb2ac335df /win/tcl.m4 | |
parent | 2aba734d8e7420ff318971532990115a19dd5f87 (diff) | |
download | tcl-27c1ef5872d95f6f8e442c9258454630bc6489a4.zip tcl-27c1ef5872d95f6f8e442c9258454630bc6489a4.tar.gz tcl-27c1ef5872d95f6f8e442c9258454630bc6489a4.tar.bz2 |
enable cygwin build in /win directory (using mingw-w64 compiler)
Diffstat (limited to 'win/tcl.m4')
-rw-r--r-- | win/tcl.m4 | 28 |
1 files changed, 16 insertions, 12 deletions
@@ -462,18 +462,22 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ extra_ldflags="-pipe" if test "$ac_cv_cygwin" = "yes"; then - touch ac$$.c - if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then - case "$extra_cflags" in - *-mwin32*) ;; - *) extra_cflags="-mwin32 $extra_cflags" ;; - esac - case "$extra_ldflags" in - *-mwin32*) ;; - *) extra_ldflags="-mwin32 $extra_ldflags" ;; - esac - fi - rm -f ac$$.o ac$$.c + case "$do64bit" in + amd64|x64|yes) + CC="x86_64-w64-mingw32-gcc" + LD="x86_64-w64-mingw32-ld" + AR="x86_64-w64-mingw32-ar" + RANLIB="x86_64-w64-mingw32-ranlib" + RC="x86_64-w64-mingw32-windres" + ;; + *) + CC="i686-w64-mingw32-gcc" + LD="i686-w64-mingw32-ld" + AR="i686-w64-mingw32-ar" + RANLIB="i686-w64-mingw32-ranlib" + RC="i686-w64-mingw32-windres" + ;; + esac fi if test "${SHARED_BUILD}" = "0" ; then |