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")