From: Magnus Jacobsson Date: Thu, 22 Jul 2021 13:57:44 +0000 (+0200) Subject: cgraph: autotools: add definition of export symbols X-Git-Tag: 3.0.0~144^2~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d34674730df97195d0a11c760c35736698b9d7c;p=graphviz cgraph: autotools: add definition of export symbols Fixes errors like this with MinGW: lib\cgraph/apply.c:48: undefined reference to `__imp_agfstsubg' Towards https://gitlab.com/graphviz/graphviz/-/issues/2058 --- diff --git a/lib/cgraph/Makefile.am b/lib/cgraph/Makefile.am index 835315d2c..39e1ff0ca 100644 --- a/lib/cgraph/Makefile.am +++ b/lib/cgraph/Makefile.am @@ -7,6 +7,10 @@ pkgconfigdir = $(libdir)/pkgconfig AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/lib/cdt +if WITH_WIN32 +AM_CFLAGS = -DEXPORT_CGRAPH -DEXPORT_AGXBUF -DEXPORT_CGHDR +endif + pkginclude_HEADERS = cgraph.h noinst_HEADERS = agxbuf.h cghdr.h itos.h likely.h prisize_t.h sprint.h \ strcasecmp.h unreachable.h