diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-12-01 01:30:06 -0800 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-12-07 18:24:07 +0000 |
commit | 2c227d41b0bfa42ad5b8d4140af3302515bd8deb (patch) | |
tree | 6f9b91c6f0fcb8b033aff091b0ecfb752c4be8b2 /qbs-resources | |
parent | 88b9e4e3ba5e5a72d7c614126c853de2a55af1a0 (diff) |
macOS: set a compatibility version on our shared libraries
Qbs currently promises BC for the same minor release. Therefore, set the
compatibility version to the same as the SONAME version. In addition to
the mere declaration for correctness, this also helps to allow the OS
to prevent loading a mismatched qbs binary and libraries if such a
situation happens to occur.
Change-Id: Ic1cfdcab29e1efd6c51872d650d77f2ea7f2bbf1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'qbs-resources')
-rw-r--r-- | qbs-resources/imports/QbsLibrary.qbs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qbs-resources/imports/QbsLibrary.qbs b/qbs-resources/imports/QbsLibrary.qbs index d66213831..8757b790c 100644 --- a/qbs-resources/imports/QbsLibrary.qbs +++ b/qbs-resources/imports/QbsLibrary.qbs @@ -34,6 +34,7 @@ QbsProduct { Properties { condition: qbs.targetOS.contains("darwin") bundle.isBundle: false + cpp.linkerFlags: ["-compatibility_version", cpp.soVersion] } Export { |