From 4dc798dc7e878f082746c900a9bf0e7c31fe738f Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 17 Sep 2016 21:48:41 +0300 Subject: Check that soname matches the filename. Closes #785. --- mesonbuild/compilers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers.py') diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index c81a599..d92d509 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -1894,7 +1894,7 @@ def get_gcc_soname_args(gcc_type, shlib_name, path, soversion): sostr = '.' + soversion if gcc_type == GCC_STANDARD or gcc_type == GCC_MINGW: # Might not be correct for mingw but seems to work. - return ['-Wl,-soname,lib%s.so%s' % (shlib_name, sostr)] + return ['-Wl,-soname,%s%s' % (shlib_name, sostr)] elif gcc_type == GCC_OSX: return ['-install_name', os.path.join(path, 'lib' + shlib_name + '.dylib')] else: -- cgit v1.1