diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2023-06-23 12:36:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-06-23 14:35:04 (GMT) |
commit | 5945a98ced2e1f4794f26f39256c95d875220408 (patch) | |
tree | 1b114fde8fdc509ae02a7390e6fca8acf85b2066 /Help | |
parent | 99ea9ad947e980d179a618ff1f67fa27a30975d3 (diff) | |
download | CMake-5945a98ced2e1f4794f26f39256c95d875220408.zip CMake-5945a98ced2e1f4794f26f39256c95d875220408.tar.gz CMake-5945a98ced2e1f4794f26f39256c95d875220408.tar.bz2 |
link dependencies: deactivate the feature
Unfortunately it breaks in combination with LTO due to a bug in the GNU
linker.
Fixes: #25014
Diffstat (limited to 'Help')
-rw-r--r-- | Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst b/Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst index e1b37a5..1867ad8 100644 --- a/Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst +++ b/Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst @@ -10,3 +10,11 @@ variable with value ``FALSE``, you can deactivate this feature. This feature is also deactivated if the :prop_tgt:`LINK_DEPENDS_NO_SHARED` target property is true. + +.. note:: + + CMake version |release| defaults this variable to ``FALSE`` because + GNU binutils linkers (``ld``, ``ld.bfd``, ``ld.gold``) generate spurious + dependencies on temporary files when LTO is enabled. See `GNU bug 30568`_. + +.. _`GNU bug 30568`: https://sourceware.org/bugzilla/show_bug.cgi?id=30568 |