Add support for embedding libraries when building on SunOS.

Based on the work of Denis Kozadaev on DilOS.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/31/head
Slávek Banko 4 年前
父節點 8668335711
當前提交 ad602fcd91
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 608F5293A04BE668

@ -833,7 +833,11 @@ macro( tde_add_library _arg_target )
# set embedded archives
if( _embed )
list( INSERT _link 0 -Wl,-whole-archive ${_embed} -Wl,-no-whole-archive )
if( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS" )
list( INSERT _link 0 -Wl,-zallextract ${_embed} -Wl,-zdefaultextract )
else( )
list( INSERT _link 0 -Wl,-whole-archive ${_embed} -Wl,-no-whole-archive )
endif( )
endif( _embed )
# set link libraries

載入中…
取消
儲存