From 87ac079bb6ab0838d0732eeb83644f09b01d5cfc Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 7 Mar 2023 10:02:50 +0000 Subject: [PATCH] Add `-fvisibility=hidden -fvisibility-inlines-hidden` to mapnik target (CMake) --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f080525b9..2f344fd9c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -44,6 +44,8 @@ endif() set_target_properties(mapnik PROPERTIES POSITION_INDEPENDENT_CODE ON + CXX_VISIBILITY_PRESET hidden + VISIBILITY_INLINES_HIDDEN ON OUTPUT_NAME "mapnik" PREFIX "lib" IMPORT_PREFIX "lib" # for the archive on dll platforms