From 43dd583cfc40246151dd62f80409ea0c8b3262e7 Mon Sep 17 00:00:00 2001 From: Zhengguo Yang Date: Mon, 8 Mar 2021 09:02:53 +0800 Subject: [PATCH] Fix dlopen faild by upgrade cmake (#5481) * fix dlopen faild * remove useless code --- be/src/service/CMakeLists.txt | 2 +- be/src/tools/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/be/src/service/CMakeLists.txt b/be/src/service/CMakeLists.txt index 63f79b607d..91a9f3c508 100644 --- a/be/src/service/CMakeLists.txt +++ b/be/src/service/CMakeLists.txt @@ -34,7 +34,7 @@ add_executable(palo_be ) # This permits libraries loaded by dlopen to link to the symbols in the program. -# set_target_properties(palo_be PROPERTIES LINK_FLAGS -pthread) +set_target_properties(palo_be PROPERTIES ENABLE_EXPORTS 1) target_link_libraries(palo_be ${DORIS_LINK_LIBS} diff --git a/be/src/tools/CMakeLists.txt b/be/src/tools/CMakeLists.txt index 47ab5de1ad..be15ed32ac 100644 --- a/be/src/tools/CMakeLists.txt +++ b/be/src/tools/CMakeLists.txt @@ -26,7 +26,7 @@ add_executable(meta_tool ) # This permits libraries loaded by dlopen to link to the symbols in the program. -# set_target_properties(doris_be PROPERTIES LINK_FLAGS -pthread) +set_target_properties(meta_tool PROPERTIES ENABLE_EXPORTS 1) target_link_libraries(meta_tool ${DORIS_LINK_LIBS}