解决多个动态库间的符号冲突问题

Signed-off-by: yewk <yeweikang1998@163.com>
This commit is contained in:
yewk 2023-02-22 07:14:13 +00:00 committed by Gitee
parent a582181c2f
commit fc03d02225
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -4,6 +4,8 @@ set(TGT_client_INC ${PROJECT_INC_BASE}/cm/cm_client)
# other project may dependens on client library use dlopen, so we need to ensure its symbols integrity.
set(TGT_LINK_LIBS pthread cmcommon_static securec ${MEMCHECK_LIBS})
add_link_options(-Wl,--exclude-libs,ALL)
if (ENABLE_UT)
add_shared_tgt(utcmclient TGT_client_SRC TGT_client_INC)
target_link_libraries(utcmclient ${TGT_LINK_LIBS})