Version 0 of Building Tcl under cygwin with MINGW

Updated 2004-07-01 12:40:01 by TV

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 on itseld is not desastrous, but I at least would like to use my installed cygwin env to build, and 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 it's normal gcc but in fact the 9as 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 make shell or make runtest is possible.

 make test

works normally.