Subject: Re: Compile Tcl & Tk for > 1 unix - DN [1]


Jeffrey Hobbs <jeffrey.hobbs@scriptics.com> - 14 Dec 1999 - comp.lang.tcl

 Roger Oberholtzer wrote:
 > I need to compile Tcl and Tk for more than 1 unix platform. This means
 > that I want more than 1 version of the compiled objects /configuration
 > info in the source tree.
 >
 > I bet there is a configure option that does this, right?

 Sure, it's actually quite easy:

     cd <tcl>/unix
     mkdir $PLATFORM
     cd $PLATFORM
     ../configure --with-options
     make install
     cd <tk>/unix
     mkdir $PLATFORM
     cd $PLATFORM
     ../configure --with-tcl=../../../tcl<ver>/unix/$PLATFORM \
         --with-options
     make install

 In 8.2, if you do a make test you get a few extra errors in the
 package tests.  This was due to a relative directory problem, and
 I've fixed it for 8.3.  I use this all the time to compile and test
 the same dev source base not only on multiple platforms, but with
 different config options.  At the moment, my "$PLATFORM"s are:
     pure (solaris 2.5.1 Purify)
     sol251
     sol7
     sol7t (with threads)
     aix
     irixcc (using MIPS cc)
     irix (with gcc, this doesn't work because gcc < 2.95
         is broken on many versions of IRIX)
     linux6
     hp

 And then of course there are the win/ and mac/ subdirectories.
 So now you all know what a day a full test is like...

 --
    Jeffrey Hobbs                          The Tcl Guy
    jeffrey.hobbs at scriptics.com         Scriptics Corp.

Last modified
2000-01-04

(195.108.246.50)

Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated