[node] hide all symbols from the Node.js addons

This commit is contained in:
Konstantin Käfer
2018-05-29 15:33:21 +02:00
parent 3ef67a827e
commit 9ebb504164
4 changed files with 10 additions and 2 deletions

View File

@@ -196,5 +196,7 @@ endmacro()
macro(mbgl_platform_node)
# Enabling node module by defining this macro
target_link_libraries(mbgl-node INTERFACE
-Wl,--version-script=${CMAKE_SOURCE_DIR}/platform/node/version-script
)
endmacro()

View File

@@ -154,5 +154,8 @@ macro(mbgl_platform_benchmark)
endmacro()
macro(mbgl_platform_node)
# Define macro to enable this target on this platform
target_link_libraries(mbgl-node INTERFACE
-exported_symbols_list ${CMAKE_SOURCE_DIR}/platform/node/symbol-list
-dead_strip
)
endmacro()

View File

View File

@@ -0,0 +1,3 @@
{
local: *;
};