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 5 years ago
parent 8668335711
commit ad602fcd91
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -833,7 +833,11 @@ macro( tde_add_library _arg_target )
# set embedded archives # set embedded archives
if( _embed ) 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 ) endif( _embed )
# set link libraries # set link libraries

Loading…
Cancel
Save