[node] hide all symbols from the Node.js addons
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
0
platform/node/symbol-list
Normal file
0
platform/node/symbol-list
Normal file
3
platform/node/version-script
Normal file
3
platform/node/version-script
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
local: *;
|
||||
};
|
||||
Reference in New Issue
Block a user