diff options
author | Hib Eris <hib@hiberis.nl> | 2012-02-09 09:03:15 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-29 16:44:06 (GMT) |
commit | c354d16cc64cf516a0b5149cdc9ef74de096a998 (patch) | |
tree | d467faa177932f7900879ce2b64bbb1041e3f05f /qmake/generators | |
parent | 99a30ca4ce33c40ba5a469a6f47f5905108381f4 (diff) | |
download | Qt-c354d16cc64cf516a0b5149cdc9ef74de096a998.zip Qt-c354d16cc64cf516a0b5149cdc9ef74de096a998.tar.gz Qt-c354d16cc64cf516a0b5149cdc9ef74de096a998.tar.bz2 |
Add TARGET_VERSION_EXT to pkgConfiglibName
The libName that is used in pkgConfig files should include the
TARGET_VERSION_EXT.
This is needed because in Win32MakefileGenerator::fixTargetExt(),
the TARGET_VERSION_EXT is added to the library name.
In Win32MakefileGenerator::processVars(), if TARGET_VERSION_EXT is empty,
it is set to VER_MAJ.
On platforms != Windows, TARGET_VERSION_EXT does not seem to be used.
We probably got away with this so far because pkgconfig files generation
for win32 was just added in 4.8 and nobody uses them yet, and because on
platforms != windows the TARGET_VERSION_EXT is not used.
(cherry picked from qtbase commit 219a688ac17052e4bb3aac9ff8a813e3f4d8da01)
Change-Id: I56f239e389f0ef926030e4c2376cadd92c4f673c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'qmake/generators')
-rw-r--r-- | qmake/generators/makefile.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp index 6e3aa31..66c6d49 100644 --- a/qmake/generators/makefile.cpp +++ b/qmake/generators/makefile.cpp @@ -3258,6 +3258,7 @@ MakefileGenerator::writePkgConfigFile() } else { pkgConfiglibDir = "-L${libdir}"; pkgConfiglibName = "-l" + lname.left(lname.length()-Option::libtool_ext.length()); + pkgConfiglibName += project->first("TARGET_VERSION_EXT"); } t << pkgConfiglibDir << " " << pkgConfiglibName << " " << endl; |