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/Linux.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/Linux.cmake')
-rw-r--r-- | Modules/Platform/Linux.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/Platform/Linux.cmake b/Modules/Platform/Linux.cmake index b5d5464..95102e1 100644 --- a/Modules/Platform/Linux.cmake +++ b/Modules/Platform/Linux.cmake @@ -19,6 +19,14 @@ foreach(type SHARED_LIBRARY SHARED_MODULE EXE) set(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic") endforeach() + +# Features for LINK_GROUP generator expression +## RESCAN: request the linker to rescan static libraries until there is +## no pending undefined symbols +set(CMAKE_LINK_GROUP_USING_RESCAN "LINKER:--start-group" "LINKER:--end-group") +set(CMAKE_LINK_GROUP_USING_RESCAN_SUPPORTED TRUE) + + # Debian policy requires that shared libraries be installed without # executable permission. Fedora policy requires that shared libraries # be installed with the executable permission. Since the native tools |