From 8d34674730df97195d0a11c760c35736698b9d7c Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Thu, 22 Jul 2021 15:57:44 +0200 Subject: [PATCH] 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 --- lib/cgraph/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.40.0