From e2757c6f5b87b5646b43a473f7d2efd2977f7da3 Mon Sep 17 00:00:00 2001 From: zhupengyang Date: Fri, 14 Oct 2022 13:57:56 +0800 Subject: [PATCH] [Cherry-pick] Strip libnnadapter.so (#9550) --- lite/backends/nnadapter/nnadapter/src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lite/backends/nnadapter/nnadapter/src/CMakeLists.txt b/lite/backends/nnadapter/nnadapter/src/CMakeLists.txt index 0f401929ff9..89a89ded097 100644 --- a/lite/backends/nnadapter/nnadapter/src/CMakeLists.txt +++ b/lite/backends/nnadapter/nnadapter/src/CMakeLists.txt @@ -23,4 +23,4 @@ add_subdirectory(runtime) add_subdirectory(driver) add_library(nnadapter SHARED nnadapter.cc) -target_link_libraries(nnadapter "-Wl,--start-group,--whole-archive" ${NNADAPTER_UTILITIES} ${NNADAPTER_OPERATIONS} ${NNADAPTER_OPTIMIZERS} ${NNADAPTER_RUNTIME} "-Wl,--no-whole-archive,--end-group") +target_link_libraries(nnadapter "-Wl,--start-group,--whole-archive" ${NNADAPTER_UTILITIES} ${NNADAPTER_OPERATIONS} ${NNADAPTER_OPTIMIZERS} ${NNADAPTER_RUNTIME} "-Wl,--no-whole-archive,--end-group -Wl,--strip-all")