File 0002-cmake-use-dll.a-suffix-for-to-import-libraries-for-M.patch of Package mingw32-qt6-base

From 63fee7105b56a52ec9077d185a8e38597631d285 Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker@freenet.de>
Date: Tue, 27 Jun 2023 09:36:10 +0200
Subject: [PATCH 2/9] cmake: use 'dll.a' suffix for to import libraries for
 MinGW

---
 src/corelib/Qt6CoreMacros.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake
index a2b40ca6f6..379e35ccfe 100644
--- a/src/corelib/Qt6CoreMacros.cmake
+++ b/src/corelib/Qt6CoreMacros.cmake
@@ -550,7 +550,7 @@ function(_qt_internal_apply_win_prefix_and_suffix target)
 
         # This should cover both MINGW with GCC and CLANG.
         if(NOT MSVC)
-            set_property(TARGET "${target}" PROPERTY IMPORT_SUFFIX ".a")
+            set_property(TARGET "${target}" PROPERTY IMPORT_SUFFIX ".dll.a")
 
             get_target_property(target_type ${target} TYPE)
             if(target_type STREQUAL "STATIC_LIBRARY")
-- 
2.43.0

openSUSE Build Service is sponsored by