aboutsummaryrefslogtreecommitdiff
path: root/compilers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-09-06 16:35:55 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-09-06 16:35:55 +0300
commit4dd6a85075703733f1f610df650b82879b911be7 (patch)
tree21af6c7b1a1d66a45dcd52606699e305f890209f /compilers.py
parent2e3bd006d319aca659cfbd8a31894e641a7a79e6 (diff)
downloadmeson-4dd6a85075703733f1f610df650b82879b911be7.zip
meson-4dd6a85075703733f1f610df650b82879b911be7.tar.gz
meson-4dd6a85075703733f1f610df650b82879b911be7.tar.bz2
Fix Windows again.
Diffstat (limited to 'compilers.py')
-rw-r--r--compilers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/compilers.py b/compilers.py
index f457cf3..95582c9 100644
--- a/compilers.py
+++ b/compilers.py
@@ -1049,7 +1049,8 @@ def get_gcc_soname_args(gcc_type, shlib_name, path, soversion):
sostr = ''
else:
sostr = '.' + soversion
- if gcc_type == GCC_STANDARD:
+ 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)]
elif gcc_type == GCC_OSX:
return ['-install_name', os.path.join(path, 'lib' + shlib_name + '.dylib')]