dtdocbook/instant: *always* link with local libtcl.a
authorJon Trulson <jon@radscan.com>
Mon, 10 Mar 2014 23:06:24 +0000 (17:06 -0600)
committerJon Trulson <jon@radscan.com>
Mon, 10 Mar 2014 23:06:24 +0000 (17:06 -0600)
On some systems with libtcl installed, it might be linked into instant
rather than the locally provided version.  This can result in random
coredumps.

Seen on Ubuntu 12.04, x86_64.

Now, we force linking with ../tcl/libtcl.a.

cde/programs/dtdocbook/instant/Imakefile

index 02a322a382225827b47348a4f7760b2e94975211..276492eda691d41e35551c0f2f0bdd1cfc714855 100644 (file)
@@ -5,7 +5,7 @@ XLATESRC  = $(DTSVCSRC)/DtUtil2
 INCLUDES = -I../lib/tptregexp -I../tcl -I$(XLATESRC)
 DEPLIBS = $(DEPDTSVCLIB)
 LOCAL_LIBRARIES = $(DTSVCLIB) $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XLIB) \
--L../lib/tptregexp -ltptregexp -L../tcl -ltcl
+-L../lib/tptregexp -ltptregexp ../tcl/libtcl.a
 #if defined(SunArchitecture) || defined (UXPArchitecture) || defined(USLArchitecture)
 EXTRA_LIBRARIES = -lsocket -lnsl -lgen -lm
 #else