]> granicus.if.org Git - graphviz/commit
gvpack: use GVDLL instead of _WIN32 to enable dllimport storage-class attribute in...
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 3 Jan 2022 08:32:48 +0000 (09:32 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 12 Jan 2022 07:51:30 +0000 (08:51 +0100)
commit00370bc8885faec1da094db463b928800d3e7767
tree0868d13bc4fae01e9773796e2b7b11d548f7c3a9
parent86f542bf4286230de12b39a56f9cea79fb4630e4
gvpack: use GVDLL instead of _WIN32 to enable dllimport storage-class attribute in gvpack.c

Fixes these errors when building statically with MinGW:

C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: gvpack_static-gvpack.o: in function `main':
C:\Users\magja\graphviz\cmd\tools/gvpack.c:857: undefined reference to `__imp_gvplugin_neato_layout_LTX_library'
collect2.exe: error: ld returned 1 exit status
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: gvpack-gvpack.o: in function `main':
C:\Users\magja\graphviz\cmd\tools/gvpack.c:857: undefined reference to `__imp_gvplugin_neato_layout_LTX_library'

Fixes https://gitlab.com/graphviz/graphviz/-/issues/2173.
cmd/tools/gvpack.c