gmodule: use dl implementation on macOS

Closes #1887
This commit is contained in:
Tom Schoonjans 2019-09-06 15:26:28 +01:00 committed by Sebastian Dröge
parent 13090a22fd
commit a18a4a6bee

View File

@ -13,12 +13,12 @@ if host_system == 'windows'
# dlopen() filepath must be of the form /path/libname.a(libname.so)
elif host_system == 'aix'
g_module_impl = 'G_MODULE_IMPL_AR'
elif have_dlopen_dlsym
g_module_impl = 'G_MODULE_IMPL_DL'
# NSLinkModule (dyld) in system libraries (Darwin)
elif cc.has_function('NSLinkModule')
g_module_impl = 'G_MODULE_IMPL_DYLD'
g_module_need_uscore = 1
elif have_dlopen_dlsym
g_module_impl = 'G_MODULE_IMPL_DL'
endif
# additional checks for G_MODULE_IMPL_DL