From a4fbea9a3dcc9e3b33d65a8da45c11c9fdf8e134 Mon Sep 17 00:00:00 2001 From: zhoufeng Date: Sat, 2 Jan 2021 15:49:21 +0800 Subject: [PATCH] fix ubuntu undefined symbols Signed-off-by: zhoufeng --- mindspore/ccsrc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ccsrc/CMakeLists.txt b/mindspore/ccsrc/CMakeLists.txt index cf82ceb0ba..b55a885729 100644 --- a/mindspore/ccsrc/CMakeLists.txt +++ b/mindspore/ccsrc/CMakeLists.txt @@ -323,7 +323,7 @@ else () endif() endif() if (ENABLE_D) - target_link_libraries(_c_expression PRIVATE ms_profile) + target_link_libraries(_c_expression PRIVATE -Wl,--no-as-needed ms_profile) endif () if (ENABLE_ACL) target_link_libraries(_c_expression PRIVATE graph)