aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2015-02-03 18:51:44 -0800
committerJake Petroules <jake.petroules@petroules.com>2015-02-04 15:26:14 +0000
commit78be49eee779fcdaab1a848e3539def73ab920e8 (patch)
treee0a4e5c773e36fc3ded0b56bf5dcc80537599f41 /share
parent6c7df8f7c6b3070f10d8df9363df8be4103e1a87 (diff)
Append -current_version flag for shared libraries on Darwin.
Change-Id: If6e319f7bfe27dd94c899e689d23af2cff569056 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'share')
-rw-r--r--share/qbs/modules/cpp/gcc.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/gcc.js b/share/qbs/modules/cpp/gcc.js
index 075d87df8..7992494d0 100644
--- a/share/qbs/modules/cpp/gcc.js
+++ b/share/qbs/modules/cpp/gcc.js
@@ -433,6 +433,10 @@ function prepareLinker(project, product, inputs, outputs, input, output) {
} else if (product.moduleProperty("qbs", "targetOS").contains("darwin")) {
args.push("-Wl,-install_name," + UnixUtils.soname(product, primaryOutput.fileName));
args.push("-Wl,-headerpad_max_install_names");
+
+ var internalVersion = product.moduleProperty("cpp", "internalVersion");
+ if (internalVersion)
+ args.push("-current_version", internalVersion);
}
}