Merge pull request #1493 from ailin-nemui/macsuffix

add explicit name_suffix to shared modules

(cherry picked from commit f1c9fb4296)
This commit is contained in:
ailin-nemui 2023-09-12 11:27:03 +00:00 committed by Ailin Nemui
commit db4dad3dd0
8 changed files with 18 additions and 0 deletions

View file

@ -73,6 +73,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 #
##############