[Starkit] well, whatever

Larry W. Virden lvirden at cas.org
Wed Sep 28 09:25:14 CEST 2005


Okay, today I have built a working tclkit on sparc solaris 9.

Here's what I did.

1. Made these changes:
$ gdiff -U1 tars/genkit genkit
--- tars/genkit Tue Sep 27 07:54:48 2005
+++ genkit      Wed Sep 28 08:20:33 2005
@@ -53,4 +53,4 @@
     #SunOS     { array set X {g++ gcc}; set env(CC) gcc }
-    SunOS      { array set Z {tclsuff "-Wl,-Bstatic -lstdc++"
-                              tksuff "-Wl,-Bstatic -lstdc++"} 
+    SunOS      { array set Z {tclsuff ""
+                              tksuff ""} 
                  set env(CC) gcc }
@@ -79,3 +79,3 @@
     }
-}
+  }
 
@@ -92,2 +92,10 @@
   trace var Z r zdefval
+
+if {[info exists env(CFLAGS)]} {
+  set Z(tclsuff) "$env(CFLAGS) $Z(tclsuff)"
+  set Z(tksuff) "$env(CFLAGS) $Z(tksuff)"
+}
+if {[info exists env(CXXFLAGS)]} {
+  set Z(tclsuff) "$env(CXXFLAGS) $Z(tclsuff)"
+}

2. Used this script:
#! /bin/ksh

date
# OS=$(~lwv28/bin/config.guess)
export PATH=/usr/ccs/bin:/vol/gnu/gcc-3.4.4/bin:$PATH
which gcc
which g++
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/vol/gnu/gcc-3.4.4/lib
export CC=/vol/gnu/gcc-3.4.4/bin/gcc
export CCC=/vol/gnu/gcc-3.4.4/bin/g++
export CFLAGS="-L/vol/gnu/gcc-3.4.4/lib -R/vol/gnu/gcc-3.4.4/lib"

export CXXFLAGS="-L/vol/gnu/gcc-3.4.4/lib -R/vol/gnu/gcc-3.4.4/lib"

tclsh ./genkit A 
tclsh ./genkit B tcl
ksh ./genkit B
ksh ./genkit C
unset DISPLAY
ksh ./genkit D
DISPLAY=lwv28awu:0 ksh ./genkit D
ksh ./genkit E


The result is a tclkit without a statically linked stdc++ :-( but
at least it does run.

I would have preferred having the libraries statically linked, but
I would get errors about not finding static versions of gcc_s, or dl,
or whatever, regardless of the variations of flags I used.

I am reporting this in case someone else comes along with a similar
problem.

So, to build a tclkit for the latest beta release, I need to put the 
new tcl and tk tar files into the tars directory, right?
Do I need new versions of anything else?
-- 
Tcl - The glue of a new generation.  <URL: http://wiki.tcl.tk/ >
Larry W. Virden <mailto:lvirden at cas.org><URL: http://www.purl.org/NET/lvirden/ >
Even if explicitly stated to the contrary, nothing in this posting should 
be construed as representing my employer's opinions.
-><-


More information about the Starkit mailing list