File 0001-Fix-not-using-.dll.a-extension-for-generating-import.patch of Package mingw64-libqt5-qtbase

From c83f6587c1c1ad2039ee457017fdfb560eb14dfd Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker@freenet.de>
Date: Thu, 30 May 2024 11:38:56 +0200
Subject: [PATCH] Fix not using .dll.a extension for generating import
 libraries

---
 qmake/generators/win32/winmakefile.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qmake/generators/win32/winmakefile.cpp b/qmake/generators/win32/winmakefile.cpp
index 5e446bd7e..3245b8227 100644
--- a/qmake/generators/win32/winmakefile.cpp
+++ b/qmake/generators/win32/winmakefile.cpp
@@ -283,9 +283,9 @@ void Win32MakefileGenerator::fixTargetExt()
     if (!project->values("QMAKE_APP_FLAG").isEmpty()) {
         project->values("TARGET_EXT").append(".exe");
     } else if (project->isActiveConfig("shared")) {
-        project->values("LIB_TARGET").prepend(project->first("QMAKE_PREFIX_STATICLIB")
+        project->values("LIB_TARGET").prepend(project->first("QMAKE_PREFIX_IMPLIB")
                                               + project->first("TARGET") + project->first("TARGET_VERSION_EXT")
-                                              + '.' + project->first("QMAKE_EXTENSION_STATICLIB"));
+                                              + '.' + project->first("QMAKE_EXTENSION_IMPLIB"));
         project->values("TARGET_EXT").append(project->first("TARGET_VERSION_EXT") + "."
                 + project->first("QMAKE_EXTENSION_SHLIB"));
         project->values("TARGET").first() = project->first("QMAKE_PREFIX_SHLIB") + project->first("TARGET");
-- 
2.44.0

openSUSE Build Service is sponsored by