]> granicus.if.org Git - graphviz/commitdiff
tcldot: autotools: add linking to tcl stubs
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 11 Aug 2021 20:15:19 +0000 (22:15 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 7 Dec 2021 06:35:01 +0000 (07:35 +0100)
Fixes errors like this using autotools with MinGW:

C:\Users\magja\graphviz\tclpkg\tcldot/tcldot.c:176: undefined reference to `Tcl_InitStubs'

tclpkg/tcldot/Makefile.am

index 6f5d634ce17f09a705836a95623c7a1b4948843a..7818f8addfc901e96b74689f81fc510a547beaab 100644 (file)
@@ -22,7 +22,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/lib/cdt \
        -I$(top_srcdir)/lib/pathplan $(TCLHANDLE_INCLUDES) $(GDLIB_CFLAGS) $(TCL_INCLUDES)
 
-LIBS = -lc
+LIBS = -lc @TCL_STUB_LIB_SPEC@
 
 AM_CFLAGS = $(TCL_CFLAGS)