]> granicus.if.org Git - graphviz/commit
common: autotools: add linking to xdot
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 28 Sep 2021 19:09:47 +0000 (21:09 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 7 Dec 2021 06:34:59 +0000 (07:34 +0100)
commita675b78f22bbc4142288b77b6e4ec6246b523cf5
treedd451057f90678727adccd5ecfbb1797e536f90c
parent957ea5e78082f6fb1f22ae8e2b175531852e6682
common: autotools: add linking to xdot

E.g. lib/common/emit.c. uses parseXDotF from lib/xdot/xdot.c.

This removes the need to link to xdot for downstream libraries that do
not explicitly use xdot.

Fixes these errors using autotools with MinGW:

C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../lib/common/.libs/libcommon_C.a(input.o): in function `graph_cleanup':
C:\Users\magja\graphviz\lib\common/input.c:881: undefined reference to `__imp_freeXDot'
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../lib/common/.libs/libcommon_C.a(emit.o): in function `init_xdot':
C:\Users\magja\graphviz\lib\common/emit.c:58: undefined reference to `__imp_parseXDotF'
lib/common/Makefile.am