Skip to content

Commit 2511b61

Browse files
committed
Strip external symbols
1 parent 2daf979 commit 2511b61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

trustdevice/src/main/cpp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ else()
2727
add_definitions(-DNDEBUG)
2828
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
2929
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
30+
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--exclude-libs,ALL")
3031
message("Close log & strip symbols")
3132
endif()
3233

0 commit comments

Comments
 (0)