support oceanbase rpm build when LTO is on

This commit is contained in:
wenxingsen
2023-03-13 03:11:32 +00:00
committed by ob-robot
parent 55d2cf583e
commit 6602937633
4 changed files with 284 additions and 3 deletions

View File

@ -20,7 +20,7 @@ target_link_libraries(obtable
PUBLIC obtable_base_objects
PRIVATE
-Wl,--whole-archive
$<TARGET_OBJECTS:obtable_base_objects>
obtable_base_objects
-Wl,--no-whole-archive
-Wl,--allow-multiple-definition)
set_target_properties(obtable PROPERTIES SOVERSION 1 VERSION 1.0.0)