2019-02-02 18:18:25 +01:00
|
|
|
From e917a88d58047cdb3fb46c1b07fb78648bf74358 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
|
2019-02-02 18:18:25 +01:00
|
|
|
Subject: [PATCH 30/34] 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
|
|
|
|
---
|
|
|
|
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-02-02 18:18:25 +01:00
|
|
|
index 4cbe06d9dc..47535f60d5 100644
|
2017-01-23 21:37:13 +01:00
|
|
|
--- a/qmake/generators/unix/unixmake.cpp
|
|
|
|
+++ b/qmake/generators/unix/unixmake.cpp
|
2018-12-08 22:06:32 +01:00
|
|
|
@@ -393,6 +393,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
|
|
|
|
+ }
|
|
|
|
QList<QMakeLocalFileName> libdirs, frameworkdirs;
|
|
|
|
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
|
2019-02-02 18:18:25 +01:00
|
|
|
index 4592fed7b2..b93d0df473 100644
|
2017-01-23 21:37:13 +01:00
|
|
|
--- a/qmake/generators/win32/winmakefile.cpp
|
|
|
|
+++ b/qmake/generators/win32/winmakefile.cpp
|
|
|
|
@@ -87,6 +87,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
|
|
|
|
+ }
|
|
|
|
QList<QMakeLocalFileName> dirs;
|
|
|
|
for (const ProString &dlib : project->values("QMAKE_DEFAULT_LIBDIRS"))
|
|
|
|
dirs.append(QMakeLocalFileName(dlib.toQString()));
|
2017-01-23 21:37:13 +01:00
|
|
|
--
|
2018-12-22 00:04:30 +01:00
|
|
|
2.20.1
|
2017-01-23 21:37:13 +01:00
|
|
|
|