summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author彭宣正 <[email protected]>2021-04-13 16:12:55 +0800
committer彭宣正 <[email protected]>2021-06-04 12:05:28 +0800
commit77908b04f5e9d6422aa8750914b9d8fc4372b002 (patch)
tree1869963c5ad072fe5afb03f6b2121515470670fd /src
parent43d9aff529552b6e390897acaa9d365ac1bea3e2 (diff)
🦄refactor: 合并AWS库
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 1d631e91..2941d99a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -10,7 +10,14 @@ link_directories(${CMAKE_INSTALL_PREFIX}/lib)
set(CMKAE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -shared -fPIC")
add_library(${lib_name}_shared SHARED hos_client.cpp hos_hash.cpp)
-target_link_libraries(${lib_name}_shared PUBLIC libaws-cpp-sdk-core.a libaws-cpp-sdk-s3.a libMESA_field_stat2.so libcurl.so libpthread.so)
+target_link_libraries(${lib_name}_shared
+ "-Wl,--whole-archive"
+ libaws-cpp-sdk-core.a
+ libaws-cpp-sdk-s3.a
+ "-Wl,--no-whole-archive"
+ libMESA_field_stat2.so
+ libcurl.so
+ libpthread.so)
set_target_properties(${lib_name}_shared PROPERTIES OUTPUT_NAME ${lib_name})
#for ASAN