Skip to content

Commit cbdc5bb

Browse files
committed
libhext/bindings/nodejs: cmake: do not expose symbols of statically linked libraries
1 parent d075772 commit cbdc5bb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

libhext/bindings/nodejs/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ target_link_libraries(${PROJECT_NAME}
4848

4949
option(HEXT_BUILD_STATIC_RELEASE "Build static Hext release" OFF)
5050
if(HEXT_BUILD_STATIC_RELEASE)
51-
target_link_libraries(${PROJECT_NAME} "-static-libgcc" "-static-libstdc++" "-Wl,--as-needed")
51+
target_link_libraries(
52+
${PROJECT_NAME}
53+
"-static-libgcc"
54+
"-static-libstdc++"
55+
"-Wl,--as-needed"
56+
"-Wl,--exclude-libs,ALL")
5257
endif()
5358

0 commit comments

Comments
 (0)