From 62ec92c8b0f92c3e8d4fd2520801194a1546db06 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 2 Oct 2016 18:37:23 +0300 Subject: [PATCH] Set soname with clang properly. --- mesonbuild/compilers.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index 0310e01f4..19fb888c8 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -2074,6 +2074,17 @@ class ClangCompiler(): # so it might change semantics at any time. return ['-include-pch', os.path.join (pch_dir, self.get_pch_name (header))] + def get_soname_args(self, shlib_name, path, soversion): + if self.clang_type == CLANG_STANDARD: + gcc_type = GCC_STANDARD + elif self.clang_type == CLANG_OSX: + gcc_type = GCC_OSX + elif self.clang_type == CLANG_WIN: + gcc_type = GCC_MINGW + else: + raise MesonException('Unreachable code when converting clang type to gcc type.') + return get_gcc_soname_args(gcc_type, shlib_name, path, soversion) + class ClangCCompiler(ClangCompiler, CCompiler): def __init__(self, exelist, version, clang_type, is_cross, exe_wrapper=None): CCompiler.__init__(self, exelist, version, is_cross, exe_wrapper)