From 2312401b09875e565e420079276bf9890f5ee3bd Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Thu, 26 Oct 2023 19:33:47 +0000 Subject: [PATCH] set thirdparty libraries symbol visibility (#544) Hide everything since antiword and chmlib are compiled and linked statically and none of their symbols are exported by the main library. --- thirdparty/antiword/CMakeLists.txt | 1 + thirdparty/chmlib/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/thirdparty/antiword/CMakeLists.txt b/thirdparty/antiword/CMakeLists.txt index 5b27e75eb..972e2f95f 100644 --- a/thirdparty/antiword/CMakeLists.txt +++ b/thirdparty/antiword/CMakeLists.txt @@ -47,3 +47,4 @@ endif(WIN32) ADD_LIBRARY(antiword STATIC ${ANTIWORD_SOURCES}) +set_target_properties(antiword PROPERTIES C_VISIBILITY_PRESET hidden) diff --git a/thirdparty/chmlib/CMakeLists.txt b/thirdparty/chmlib/CMakeLists.txt index fce751000..5f2668d31 100644 --- a/thirdparty/chmlib/CMakeLists.txt +++ b/thirdparty/chmlib/CMakeLists.txt @@ -19,3 +19,4 @@ SET (CHMLIB_SOURCES ADD_LIBRARY(chmlib STATIC ${CHMLIB_SOURCES}) +set_target_properties(chmlib PROPERTIES C_VISIBILITY_PRESET hidden)