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.
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