summaryrefslogtreecommitdiffstats
path: root/qmake/generators/unix/unixmake2.cpp
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-07-23 17:53:20 +0900
committerSlávek Banko <slavek.banko@axis.cz>2021-02-02 01:41:09 +0100
commitccb28f09f42d22eea45ed25f791cdc8c71d751f5 (patch)
tree012a2447b549dca44eac9564b190fa0b9c53f9ab /qmake/generators/unix/unixmake2.cpp
parent9f643e09538a6d0f5e260fe7d58bd5d4dc542613 (diff)
downloadqt3-ccb28f09f42d22eea45ed25f791cdc8c71d751f5.tar.gz
qt3-ccb28f09f42d22eea45ed25f791cdc8c71d751f5.zip
Fix to detect file conponent from path properly in Makefile generator
It should be either `path.right(path.length() - sep_pos - 1)` or `path.mid(sep_pos + 1)`. Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 30a7754971fee794819df164dd1601b2af49587a)
Diffstat (limited to 'qmake/generators/unix/unixmake2.cpp')
-rw-r--r--qmake/generators/unix/unixmake2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp
index 3d07ea5..496f080 100644
--- a/qmake/generators/unix/unixmake2.cpp
+++ b/qmake/generators/unix/unixmake2.cpp
@@ -1428,7 +1428,7 @@ UnixMakefileGenerator::libtoolFileName()
QString ret = var("TARGET");
int slsh = ret.findRev(Option::dir_sep);
if(slsh != -1)
- ret = ret.right(ret.length() - slsh);
+ ret = ret.right(ret.length() - slsh - 1);
int dot = ret.find('.');
if(dot != -1)
ret = ret.left(dot);
@@ -1512,7 +1512,7 @@ UnixMakefileGenerator::pkgConfigFileName()
QString ret = var("TARGET");
int slsh = ret.findRev(Option::dir_sep);
if(slsh != -1)
- ret = ret.right(ret.length() - slsh);
+ ret = ret.right(ret.length() - slsh - 1);
if(ret.startsWith("lib"))
ret = ret.mid(3);
int dot = ret.find('.');