2020-05-29 17:30:23 +02:00
|
|
|
From dd50dd544fbf94606c08fa57b0393df24282c28b Mon Sep 17 00:00:00 2001
|
2016-09-19 22:18:45 +02:00
|
|
|
From: Martchus <martchus@gmx.net>
|
|
|
|
Date: Sun, 18 Sep 2016 14:01:14 +0200
|
2020-04-15 11:18:19 +02:00
|
|
|
Subject: [PATCH 06/31] Prevent debug library names in pkg-config files
|
2016-09-19 22:18:45 +02:00
|
|
|
|
|
|
|
qmake generates the pkgconfig .pc files two times, once for the
|
|
|
|
release build and once for the debug build (which we're not actually
|
|
|
|
building in this package). For both generations the exact same
|
|
|
|
pkgconfig file name is used. This causes references to the debug
|
|
|
|
build ending up in the .pc files which are unwanted
|
|
|
|
Prevent this from happening by giving the pkgconfig .pc
|
|
|
|
files for the debug build an unique file name.
|
|
|
|
---
|
|
|
|
qmake/generators/makefile.cpp | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp
|
2020-05-29 17:30:23 +02:00
|
|
|
index e94084381c..8e4d11484f 100644
|
2016-09-19 22:18:45 +02:00
|
|
|
--- a/qmake/generators/makefile.cpp
|
|
|
|
+++ b/qmake/generators/makefile.cpp
|
2020-05-29 17:30:23 +02:00
|
|
|
@@ -3225,6 +3225,9 @@ MakefileGenerator::pkgConfigFileName(bool fixify, bool onlyPrependDestdir)
|
2016-09-19 22:18:45 +02:00
|
|
|
if (dot != -1)
|
|
|
|
ret = ret.left(dot);
|
|
|
|
}
|
|
|
|
+ if (project->isActiveConfig("debug")) {
|
|
|
|
+ ret += "d";
|
|
|
|
+ }
|
|
|
|
ret += Option::pkgcfg_ext;
|
|
|
|
QString subdir = project->first("QMAKE_PKGCONFIG_DESTDIR").toQString();
|
|
|
|
if(!subdir.isEmpty()) {
|
|
|
|
--
|
2020-05-29 17:30:23 +02:00
|
|
|
2.26.2
|
2016-09-19 22:18:45 +02:00
|
|
|
|