Version 1 of Building Tcl under cygwin with MINGW

Updated 2004-07-02 13:21:26

page started by TV

Recently trying out the latest CVS version of tcl 8.5, I found the standard distr. doesn't allow a cygwin build. That in itself is not disasterous, but I at least would like to use my installed cygwin env to build. That should be possible with mingw, which however is already present in the cygwin distr., usually.

The main trick was suggested by GPS, to make cygwin not use its normal gcc, but in fact the 9as (what?) I used before: -mno-cygwin option (under bash):

 export CC="gcc -mno-cygwin"
 ./configure
 make

A comment on the outcome: I wanted to use the resulting tclsh without installing, which is problematic because it looks for a valid init.tcl . It appears that a make shell or make runtest is possible.

 make test

works normally.