Blob Blame History Raw
From 676fd6fa42b0a4c15f9f6cf9d79ee7c1bc8e644f Mon Sep 17 00:00:00 2001
From: Sandro Mani <manisandro@gmail.com>
Date: Sat, 7 Jan 2017 16:27:35 +0100
Subject: [PATCH 05/19] Prevent debug library names in pkg-config files

Change-Id: Ib8422264c4ae266f9b3569617e9e13d2ac77288c
---
 qmake/generators/makefile.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp
index fa5c796387..04c0210eb9 100644
--- a/qmake/generators/makefile.cpp
+++ b/qmake/generators/makefile.cpp
@@ -3163,6 +3163,9 @@ MakefileGenerator::pkgConfigFileName(bool fixify, bool onlyPrependDestdir)
         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()) {
-- 
2.11.0