提交 bad0d4e3 编写于 作者: W wenxingsen 提交者: wangzelin.wzl

fix ut build error using ld linker

上级 206701c9
......@@ -5,7 +5,16 @@ target_link_libraries(oblib_testbase INTERFACE -lgmock -lgtest)
function(oblib_addtest mainfile)
get_filename_component(testname ${mainfile} NAME_WE)
add_executable(${testname} ${ARGV})
target_link_libraries(${testname} PRIVATE easy aio -L${DEP_DIR}/lib/mariadb mariadb oblib oblib_testbase -static-libgcc -static-libstdc++)
target_link_libraries(${testname} PRIVATE
-Wl,--start-group
aio
easy
-L${DEP_DIR}/lib/mariadb mariadb
oblib
oblib_testbase
-Wl,--end-group
-static-libgcc
-static-libstdc++)
endfunction()
add_subdirectory(lib)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册