aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2017-07-21 23:33:35 +1000
committerJussi Pakkanen <jpakkane@gmail.com>2017-07-21 20:36:50 +0300
commita9559e0d775c95693a3dd7c1de7aaf2b4113d94a (patch)
treecd0c713079ccf4dedc307fac127076fb31597f57
parentb32af18e75d38f63aff77e3a2347cb15d322d377 (diff)
downloadmeson-a9559e0d775c95693a3dd7c1de7aaf2b4113d94a.zip
meson-a9559e0d775c95693a3dd7c1de7aaf2b4113d94a.tar.gz
meson-a9559e0d775c95693a3dd7c1de7aaf2b4113d94a.tar.bz2
Fix linking Objective-C shared libs on OSX.
This commit amends 04a2e6de making linker.get_std_shared_lib_link_args() always return -shared for SharedLibrary(es) instead of -bundle. SharedModule(s) get linked with linker.get_std_shared_module_link_args() which already correctly returns -bundle. Before this change -bundle and -install_name ended up being emitted for Objective-C shared libraries, which caused a linking error.
-rw-r--r--mesonbuild/compilers/compilers.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 0be3908..252db72 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -954,8 +954,6 @@ class GnuCompiler:
return get_gcc_soname_args(self.gcc_type, prefix, shlib_name, suffix, path, soversion, is_shared_module)
def get_std_shared_lib_link_args(self):
- if self.gcc_type == GCC_OSX:
- return ['-bundle']
return ['-shared']
def get_link_whole_for(self, args):