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 vor 4 Jahren
Ursprung 8668335711
Commit ad602fcd91
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-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

Laden…
Abbrechen
Speichern