summaryrefslogtreecommitdiffstats
path: root/src/cmake
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-10-17 13:33:32 +0200
committerNeale Ranns <nranns@cisco.com>2020-10-19 10:06:38 +0000
commit931c6f54bad50d880560e8705e08b16bf8a19337 (patch)
tree2c021cdeedf77557308afbf6797e5338b6c9c547 /src/cmake
parent07619240c295b6f068609d5603dba8601dbd72a0 (diff)
misc: don't export symbols from plugins
Type: improvement Change-Id: I2a176fe2871d2e54b010bffc4f1f7a3616f0c455 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/cmake')
-rw-r--r--src/cmake/plugin.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmake/plugin.cmake b/src/cmake/plugin.cmake
index 1bcff5559ff..516588c7b8b 100644
--- a/src/cmake/plugin.cmake
+++ b/src/cmake/plugin.cmake
@@ -45,6 +45,7 @@ macro(add_vpp_plugin name)
endforeach()
add_library(${plugin_name} SHARED ${PLUGIN_SOURCES} ${api_includes})
set_target_properties(${plugin_name} PROPERTIES NO_SONAME 1)
+ target_compile_options(${plugin_name} PRIVATE "-fvisibility=hidden")
set(deps "")
if(PLUGIN_API_FILES)
list(APPEND deps ${plugin_name}_api_headers)