summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2013-07-22 13:09:21 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-13 19:48:15 +0200
commit1dcdc506f34bfa0d9adc6d07587a4a71dbda455b (patch)
tree7fb41afabc3dcc6a4413f7136dd3688cddfc2009 /qmake
parent3c2c9649eb7b966cfc2727fd309cf6d928c43f8c (diff)
Fix SONAME handling on android
Set the SONAME to the library name without the major version number appended, as android does not have the versioned symlinks. Change-Id: I41c504869019a393a3f112b2f7fc81c7ad5afa1c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: BogDan Vatra <bogdan@kde.org>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/unix/unixmake2.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp
index e4d33e2d4e..cd6f441472 100644
--- a/qmake/generators/unix/unixmake2.cpp
+++ b/qmake/generators/unix/unixmake2.cpp
@@ -1178,6 +1178,9 @@ void UnixMakefileGenerator::init2()
soname += project->first("TARGET");
} else if(!project->isEmpty("QMAKE_BUNDLE")) {
soname += project->first("TARGET_x.y");
+ } else if(project->isActiveConfig("unversioned_soname")) {
+ soname = "lib" + project->first("QMAKE_ORIG_TARGET")
+ + "." + project->first("QMAKE_EXTENSION_SHLIB");
} else if(!project->values("TARGET_x").isEmpty()) {
soname += project->first("TARGET_x");
}