]> granicus.if.org Git - graphviz/commitdiff
tred: autotools: link to the shared gvc lib instead of the static common lib
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 4 Aug 2021 09:04:58 +0000 (11:04 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 26 Dec 2021 06:59:15 +0000 (07:59 +0100)
The common lib is built into the gvc lib.

An upcoming commit that changes tred.c to include utils.h instead of
timing.h would otherwise cause these errors:

/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: tred.o: in function `process':
/cygdrive/c/GitLab-Runner/builds/magjac/graphviz/cmd/tools/tred.c:296: undefined reference to `__imp_start_timer'
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/c/GitLab-Runner/builds/magjac/graphviz/cmd/tools/tred.c:299: undefined reference to `__imp_elapsed_sec'

cmd/tools/Makefile.am

index 5b78a15235191c61a5d760614f63042cdd4bcd6a..0bce64ba61b6de23755ede871126a2fe17ea0def 100644 (file)
@@ -124,7 +124,7 @@ endif
 tred_SOURCES = tred.c
 
 tred_LDADD = \
-    $(top_builddir)/lib/common/libcommon_C.la \
+    $(top_builddir)/lib/gvc/libgvc.la \
        $(top_builddir)/lib/ingraphs/libingraphs_C.la \
        $(top_builddir)/lib/cgraph/libcgraph.la