diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2022-03-02 16:32:44 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2022-03-05 11:40:26 (GMT) |
commit | b0fada9964589462127cfcc45f1c6f003c349ebc (patch) | |
tree | 597e818443e62c71b0ce178dab32c3d310159d80 /Modules/Platform/SunOS.cmake | |
parent | a950fd9553cc4a9457bbe701399fce09ed360151 (diff) | |
download | CMake-b0fada9964589462127cfcc45f1c6f003c349ebc.zip CMake-b0fada9964589462127cfcc45f1c6f003c349ebc.tar.gz CMake-b0fada9964589462127cfcc45f1c6f003c349ebc.tar.bz2 |
Genex-LINK_GROUP: Add feature RESCAN
Feature RESCAN can be used to manage circular references between
static libraries.
Diffstat (limited to 'Modules/Platform/SunOS.cmake')
-rw-r--r-- | Modules/Platform/SunOS.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake index 78eccf7..e01e892 100644 --- a/Modules/Platform/SunOS.cmake +++ b/Modules/Platform/SunOS.cmake @@ -7,6 +7,16 @@ if(CMAKE_SYSTEM MATCHES "SunOS-4") set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":") endif() + +# Features for LINK_GROUP generator expression +if (CMAKE_SYSTEM_VERSION VERSION_GREATER "5.9") + ## RESCAN: request the linker to rescan static libraries until there is + ## no pending undefined symbols + set(CMAKE_LINK_GROUP_USING_RESCAN "LINKER:-z,rescan-start" "LINKER:-z,rescan-end") + set(CMAKE_LINK_GROUP_USING_RESCAN_SUPPORTED TRUE) +endif() + + include(Platform/UnixPaths) list(APPEND CMAKE_SYSTEM_PREFIX_PATH |