]> granicus.if.org Git - graphviz/commitdiff
lib: autotools: build xdot before common
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 29 Sep 2021 19:06:59 +0000 (21:06 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 7 Dec 2021 06:34:59 +0000 (07:34 +0100)
E.g. lib/common/emit.c. uses parseXDotF from lib/xdot/xdot.c.

This is the first step in fixing 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'

The next commit in this series will add linking to xdot.

lib/Makefile.am

index b1145c48425bc71f54498b785f706a7983511469..237c606bff8ceebd7b853c15717e53ca13494892 100644 (file)
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-SUBDIRS = cdt cgraph pathplan sfio vmalloc ast \
+SUBDIRS = cdt xdot cgraph pathplan sfio vmalloc ast \
        vpsc rbtree ortho sparse patchwork expr common \
-       pack xdot label gvc ingraphs topfish glcomp mingle edgepaint \
+       pack label gvc ingraphs topfish glcomp mingle edgepaint \
        circogen dotgen fdpgen neatogen twopigen sfdpgen osage gvpr
 
 EXTRA_DIST = gvc.vcxproj*