diff options
author | Slávek Banko <[email protected]> | 2020-03-09 23:24:56 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-03-09 23:24:56 +0100 |
commit | ad602fcd91eee974750a1323d6e187461b1f8210 (patch) | |
tree | bb4b4286eb585f71adad2575b221cd9c63f3becd /modules/TDEMacros.cmake | |
parent | 8668335711fa13cec276552d75bfbb4285c7edb0 (diff) | |
download | tde-cmake-ad602fcd91eee974750a1323d6e187461b1f8210.tar.gz tde-cmake-ad602fcd91eee974750a1323d6e187461b1f8210.zip |
Add support for embedding libraries when building on SunOS.
Based on the work of Denis Kozadaev on DilOS.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r-- | modules/TDEMacros.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 13fa54a..a5603cf 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -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 |