]> granicus.if.org Git - graphviz/commit
ortho: CMake: ensure ortho symbols are exported from gvc
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 24 Jul 2021 06:04:53 +0000 (08:04 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 31 Aug 2021 15:45:56 +0000 (17:45 +0200)
commit87469577e68dcf15f05aaef9305c24b94429bca7
tree819ecd3e67984e6928f9a028ccf300b616aac90a
parentb2d2a6d30bf3406df02f3564d64779200a1bc5a8
ortho: CMake: ensure ortho symbols are exported from gvc

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

Fixes errors like this with MinGW:

C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../ortho/CMakeFiles/ortho_obj.dir/fPQ.c.obj:fPQ.c:(.text+0x6d): undefined reference to `__imp_gcalloc'
lib/ortho/CMakeLists.txt