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}