2022-01-02 13:29:53 +01:00
|
|
|
From e7b960e2af57c99d6843be5b8a59f8b72ce426a7 Mon Sep 17 00:00:00 2001
|
2017-01-23 21:37:13 +01:00
|
|
|
From: Martchus <martchus@gmx.net>
|
|
|
|
Date: Tue, 7 Feb 2017 18:25:28 +0100
|
2021-08-26 21:24:07 +02:00
|
|
|
Subject: [PATCH 28/32] Prevent qmake from messing static lib dependencies
|
2017-01-23 21:37:13 +01:00
|
|
|
|
|
|
|
In particular, it messes resolving cyclic dependency between
|
|
|
|
static freetype2 and harfbuzz
|
2019-12-13 01:00:48 +01:00
|
|
|
|
|
|
|
Change-Id: Ie5a4e2ad96bd613ae4c26486edb30c74929459b0
|
2017-01-23 21:37:13 +01:00
|
|
|
---
|
|
|
|
qmake/generators/unix/unixmake.cpp | 3 +++
|
|
|
|
qmake/generators/win32/winmakefile.cpp | 3 +++
|
|
|
|
2 files changed, 6 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/qmake/generators/unix/unixmake.cpp b/qmake/generators/unix/unixmake.cpp
|
2019-12-13 01:00:48 +01:00
|
|
|
index f7bd6dc663..b76c444012 100644
|
2017-01-23 21:37:13 +01:00
|
|
|
--- a/qmake/generators/unix/unixmake.cpp
|
|
|
|
+++ b/qmake/generators/unix/unixmake.cpp
|
2019-12-13 01:00:48 +01:00
|
|
|
@@ -391,6 +391,9 @@ UnixMakefileGenerator::fixLibFlag(const ProString &lib)
|
2017-01-23 21:37:13 +01:00
|
|
|
bool
|
|
|
|
UnixMakefileGenerator::findLibraries(bool linkPrl, bool mergeLflags)
|
|
|
|
{
|
|
|
|
+ if(project->isActiveConfig("staticlib")) {
|
|
|
|
+ return false; // prevent qmake from messing static lib dependencies
|
|
|
|
+ }
|
2019-12-13 01:00:48 +01:00
|
|
|
QVector<QMakeLocalFileName> libdirs, frameworkdirs;
|
2017-01-23 21:37:13 +01:00
|
|
|
int libidx = 0, fwidx = 0;
|
|
|
|
for (const ProString &dlib : project->values("QMAKE_DEFAULT_LIBDIRS"))
|
|
|
|
diff --git a/qmake/generators/win32/winmakefile.cpp b/qmake/generators/win32/winmakefile.cpp
|
2020-09-10 21:17:46 +02:00
|
|
|
index 03732df4a8..602f7609f5 100644
|
2017-01-23 21:37:13 +01:00
|
|
|
--- a/qmake/generators/win32/winmakefile.cpp
|
|
|
|
+++ b/qmake/generators/win32/winmakefile.cpp
|
2019-12-13 01:00:48 +01:00
|
|
|
@@ -106,6 +106,9 @@ Win32MakefileGenerator::findLibraries(bool linkPrl, bool mergeLflags)
|
2019-02-02 18:18:25 +01:00
|
|
|
impexts.append(project->values("QMAKE_EXTENSION_IMPORTLIB"));
|
|
|
|
impexts.append(project->values("QMAKE_EXTENSION_STATICLIB"));
|
|
|
|
}
|
|
|
|
+ if(project->isActiveConfig("staticlib")) {
|
|
|
|
+ return false; // prevent qmake from messing static lib dependencies
|
|
|
|
+ }
|
2019-12-13 01:00:48 +01:00
|
|
|
QVector<LibrarySearchPath> dirs;
|
2019-04-21 22:37:50 +02:00
|
|
|
int libidx = 0;
|
2019-02-02 18:18:25 +01:00
|
|
|
for (const ProString &dlib : project->values("QMAKE_DEFAULT_LIBDIRS"))
|
2017-01-23 21:37:13 +01:00
|
|
|
--
|
2022-01-02 13:29:53 +01:00
|
|
|
2.34.1
|
2017-01-23 21:37:13 +01:00
|
|
|
|