aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-08-21 14:12:19 +0300
committerGitHub <noreply@github.com>2016-08-21 14:12:19 +0300
commit6ae40344e0ab6d6b64947af17faeebe8ac20724e (patch)
tree93c6146b86657ea5989717752bfe0f155f4a92aa /mesonbuild/build.py
parente3783f0f595cf00afeb41410b215d26eba228327 (diff)
parent5f3097a4928056c009b8fb30a4c6725a93e1e858 (diff)
downloadmeson-6ae40344e0ab6d6b64947af17faeebe8ac20724e.zip
meson-6ae40344e0ab6d6b64947af17faeebe8ac20724e.tar.gz
meson-6ae40344e0ab6d6b64947af17faeebe8ac20724e.tar.bz2
Merge pull request #680 from centricular/osx-dylib-soversion
Add a test to find libfoo.X.dylib via -lfoo
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 94b95c2..dd03d81 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -825,12 +825,10 @@ class SharedLibrary(BuildTarget):
elif for_darwin(is_cross, env):
prefix = 'lib'
suffix = 'dylib'
- if self.soversion:
- # libfoo.X.dylib
- self.filename_tpl = '{0.prefix}{0.name}.{0.soversion}.{0.suffix}'
- else:
- # libfoo.dylib
- self.filename_tpl = '{0.prefix}{0.name}.{0.suffix}'
+ # libfoo.dylib
+ self.filename_tpl = '{0.prefix}{0.name}.{0.suffix}'
+ # On OS X, the filename should never have the soversion
+ # See: https://github.com/mesonbuild/meson/pull/680
else:
prefix = 'lib'
suffix = 'so'