diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2023-05-27 08:54:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-10-24 12:34:50 (GMT) |
commit | c26c6ac488468e61c7b58226325043201c80c43e (patch) | |
tree | fdd4ec5a9a261147ebc2808c0ffd67d169fc3548 /Modules/Platform/CYGWIN-GNU.cmake | |
parent | 8a79a20257eeac5b770e30df44441990cf01a853 (diff) | |
download | CMake-c26c6ac488468e61c7b58226325043201c80c43e.zip CMake-c26c6ac488468e61c7b58226325043201c80c43e.tar.gz CMake-c26c6ac488468e61c7b58226325043201c80c43e.tar.bz2 |
Link Step: compute effective linker used by the compiler
Extract the effective linker during the computation of implicit artifacts
delivered by the compiler to the linker.
Define various variables describing the linker:
* CMAKE_<LANG>_COMPILER_LINKER
* CMAKE_<LANG>_COMPILER_LINKER_VERSION
* CMAKE_<LANG>_COMPILER_LINKER_ID
* CMAKE_<LANG>_COMPILER_LINKER_FRONTEND_VARIANT
This is complementary to feature introduced by commit 96a953b1ed
(Add options to specify linker tool, 2023-09-27).
Fixes: #17596, #18209, #25344
Diffstat (limited to 'Modules/Platform/CYGWIN-GNU.cmake')
-rw-r--r-- | Modules/Platform/CYGWIN-GNU.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/CYGWIN-GNU.cmake b/Modules/Platform/CYGWIN-GNU.cmake index ef64012..070b24d 100644 --- a/Modules/Platform/CYGWIN-GNU.cmake +++ b/Modules/Platform/CYGWIN-GNU.cmake @@ -52,6 +52,8 @@ macro(__cygwin_compiler_gnu lang) "<CMAKE_${lang}_COMPILER> <FLAGS> <CMAKE_${lang}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> -Wl,--out-implib,<TARGET_IMPLIB> ${CMAKE_GNULD_IMAGE_VERSION} <LINK_LIBRARIES>") set(CMAKE_${lang}_CREATE_WIN32_EXE "-mwindows") + set(CMAKE_${lang}_VERBOSE_LINK_FLAG "-Wl,-v") + # No -fPIC on cygwin set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "") set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "") |