]> granicus.if.org Git - graphviz/commit
label: CMake: ensure label symbols are exported from the gvc lib
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 29 Jul 2021 05:58:37 +0000 (07:58 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 31 Aug 2021 15:46:22 +0000 (17:46 +0200)
commit5121c3a77901eb1a23636fbe3b32f1e8eb2ed396
treecb82f521bd692165cb222b84ceff6a4a75ff7673
parent87469577e68dcf15f05aaef9305c24b94429bca7
label: CMake: ensure label symbols are exported from the gvc lib

The object modules from the static label lib are statically linked
into the gvc shared lib through the common object library which means
that their symbols should be exported from gvc instead of
imported. Defining GVC_EXPORTS achieves this.

This is what the autotools build already does.

Fixes this error with MinGW:

C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../label/liblabel.a(xlabels.c.obj):xlabels.c:(.text+0x98): undefined reference to `__imp_zmalloc'
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../label/liblabel.a(xlabels.c.obj):xlabels.c:(.text+0x1f40): undefined reference to `__imp_zmalloc'
lib/label/CMakeLists.txt