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>
(cherry picked from commit ad602fcd91)
r14.0.x
Slávek Banko 5 years ago
parent c51d14850f
commit b3510baa2d
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
if( _embed )
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

Loading…
Cancel
Save