diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-10-01 01:59:09 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-10-01 01:59:09 +0300 |
commit | 4e428614677476b55b08b152f122508582795922 (patch) | |
tree | 0b4df7e7cdafa1a5e16e9117a8c1d9bc8ce41919 | |
parent | cb64a3f07a91c01c84f80d5303aaf5f0fe5ee100 (diff) | |
download | meson-4e428614677476b55b08b152f122508582795922.zip meson-4e428614677476b55b08b152f122508582795922.tar.gz meson-4e428614677476b55b08b152f122508582795922.tar.bz2 |
Fix tests on OSX.
-rwxr-xr-x | run_unittests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py index b1021e0..af1a5f2 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1372,7 +1372,9 @@ int main(int argc, char **argv) { else: extra_args = ['-fPIC'] shlibfile = os.path.join(tdir, 'libalexandria.' + shared_suffix) - link_cmd = [compiler, '-shared', '-o', shlibfile, objectfile, '-Wl,-soname=libalexandria.so'] + link_cmd = [compiler, '-shared', '-o', shlibfile, objectfile] + if not mesonbuild.mesonlib.is_osx(): + link_cmd += ['-Wl,-soname=libalexandria.so'] self.pbcompile(compiler, source, objectfile, extra_args=extra_args) try: subprocess.check_call(link_cmd) |