add explicit name_suffix to shared modules

This commit is contained in:
Ailin Nemui 2023-08-10 10:19:01 +02:00
commit c0db0b8cb8
15 changed files with 25 additions and 0 deletions

View file

@ -77,6 +77,16 @@ def_scriptdir = '-D' + 'SCRIPTDIR' + '="' + (get_option('prefix') / scriptdir)
def_suppress_printf_fallback = '-D' + 'SUPPRESS_PRINTF_FALLBACK'
module_suffix = []
perl_module_suffix = []
# Meson uses the wrong module extensions on Mac.
# https://gitlab.gnome.org/GNOME/glib/issues/520
if ['darwin', 'ios'].contains(host_machine.system())
module_suffix = 'so'
perl_module_suffix = 'bundle'
endif
##############
# Help files #
##############