diff options
Diffstat (limited to 'src/modules/meson.build')
-rw-r--r-- | src/modules/meson.build | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/meson.build b/src/modules/meson.build index 3636ce0de..05267c93a 100644 --- a/src/modules/meson.build +++ b/src/modules/meson.build @@ -311,6 +311,12 @@ else no_undefined_args = [] endif +module_suffix = [] +if host_machine.system() == 'darwin' + # meson defaults to dylib but ltdl expects so + module_suffix = 'so' +endif + foreach m : all_modules name = m[0] sources = m[1] @@ -331,5 +337,6 @@ foreach m : all_modules link_args : [nodelete_link_args, no_undefined_args], link_with : extra_libs, name_prefix : '', + name_suffix : module_suffix, implicit_include_directories : false) endforeach |