Browse Source

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 6 months ago
parent
commit
ad602fcd91
No known key found for this signature in database GPG Key ID: 608F5293A04BE668
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      modules/TDEMacros.cmake

+ 5
- 1
modules/TDEMacros.cmake View File

@@ -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


Loading…
Cancel
Save