diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2016-10-31 16:43:38 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2016-11-03 09:11:10 +0000 |
commit | 794c88ff8570fc14502c5c716ba22bdf99c4aa9a (patch) | |
tree | 68bee5227aa1736085e6cbf8e604c295a4dcf191 /src | |
parent | 6e58286b955d32d5be1381802e92fd4a7cd3a4d2 (diff) |
Append minor version number to soname of all qbs libs
For the qbs build this feature is turned off to be able
to build qbs 1.7 with qbs 1.6.
Task-number: QBS-1002
Change-Id: I983b61c870f8516fb992e2379c5acb86f02dc104
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/library.pri | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/library.pri b/src/lib/library.pri index 752a29954..0ab69840c 100644 --- a/src/lib/library.pri +++ b/src/lib/library.pri @@ -25,6 +25,13 @@ qbs_disable_rpath { } include(../../qbs_version.pri) VERSION = $${QBS_VERSION} + +linux { + # Turn off absurd qmake's soname "logic" and directly add the linker flag. + QMAKE_LFLAGS_SONAME = + QMAKE_LFLAGS = -Wl,-soname=lib$${TARGET}.so.$${QBS_VERSION_MAJ}.$${QBS_VERSION_MIN} +} + win32 { dlltarget.path = $${QBS_INSTALL_PREFIX}/bin INSTALLS += dlltarget |