summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-03 18:28:55 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-03 18:29:26 (GMT)
commite8f0b75ff9dc564513f01c7b814f06adb6809b82 (patch)
tree630e01266600e96200ffa19fd5a6748c633e8a04 /Modules
parent4e5893b658b1c360c1b2d9413dbd66b2b02dbacc (diff)
downloadCMake-e8f0b75ff9dc564513f01c7b814f06adb6809b82.zip
CMake-e8f0b75ff9dc564513f01c7b814f06adb6809b82.tar.gz
CMake-e8f0b75ff9dc564513f01c7b814f06adb6809b82.tar.bz2
Windows-GNU: Support duplicate object names when linking shared libraries
Extend the change from commit 39d0ade07e (Windows-GNU: Support duplicate object names in large archives (#14874), 2014-04-14, v3.1.0-rc1~629^2~1) to apply to the temporary archive we create for linking shared libraries with MinGW tools. Issue: #21988
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Windows-GNU.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake
index e50c215..d000380 100644
--- a/Modules/Platform/Windows-GNU.cmake
+++ b/Modules/Platform/Windows-GNU.cmake
@@ -121,7 +121,7 @@ macro(__windows_compiler_gnu lang)
CMAKE_${lang}_${rule} "${CMAKE_${lang}_${rule}}")
set(CMAKE_${lang}_${rule}
"<CMAKE_COMMAND> -E rm -f <OBJECT_DIR>/objects.a"
- "<CMAKE_AR> cr <OBJECT_DIR>/objects.a <OBJECTS>"
+ "<CMAKE_AR> qc <OBJECT_DIR>/objects.a <OBJECTS>"
"${CMAKE_${lang}_${rule}}"
)
endforeach()