From 686698a7b476cc1da1aa19f016054462638cd7ed Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Thu, 24 Oct 2024 16:59:34 +0200 Subject: [PATCH] Help: Update note relative the GNU binutils linkers --- Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst b/Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst index 1867ad844f..1c07a23c75 100644 --- a/Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst +++ b/Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst @@ -13,8 +13,9 @@ target property is true. .. note:: - CMake version |release| defaults this variable to ``FALSE`` because - GNU binutils linkers (``ld``, ``ld.bfd``, ``ld.gold``) generate spurious + CMake version |release| defaults this variable to ``FALSE`` if the linker is + one from the GNU binutils linkers (``ld`` and ``ld.bfd`` for version less + than 2.41 or ``ld.gold`` for any version) because it 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