[glib: 1/2] gmodule: remove macOS dyld implementation
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gmodule: remove macOS dyld implementation
- Date: Sat, 7 Sep 2019 16:16:35 +0000 (UTC)
commit 3daa3ac8352329d4ecd8eec8ee8ec4a93fe2eff5
Author: Tom Schoonjans <Tom Schoonjans diamond ac uk>
Date: Sat Sep 7 16:41:26 2019 +0100
gmodule: remove macOS dyld implementation
It did not work for dylibs, was full of ancient, deprecated code,
and was not actually used anyway.
gmodule/gmodule-dyld.c | 152 -----------------------------------------------
gmodule/gmodule.c | 2 -
gmodule/gmoduleconf.h.in | 1 -
gmodule/meson.build | 4 --
4 files changed, 159 deletions(-)
---
diff --git a/gmodule/gmodule.c b/gmodule/gmodule.c
index 886eb85b0..497881782 100644
--- a/gmodule/gmodule.c
+++ b/gmodule/gmodule.c
@@ -283,8 +283,6 @@ g_module_set_error (const gchar *error)
#include "gmodule-dl.c"
#elif (G_MODULE_IMPL == G_MODULE_IMPL_WIN32)
#include "gmodule-win32.c"
-#elif (G_MODULE_IMPL == G_MODULE_IMPL_DYLD)
-#include "gmodule-dyld.c"
#elif (G_MODULE_IMPL == G_MODULE_IMPL_AR)
#include "gmodule-ar.c"
#else
diff --git a/gmodule/gmoduleconf.h.in b/gmodule/gmoduleconf.h.in
index 2dad04749..39d670729 100644
--- a/gmodule/gmoduleconf.h.in
+++ b/gmodule/gmoduleconf.h.in
@@ -26,7 +26,6 @@ extern "C" {
#define G_MODULE_IMPL_NONE 0
#define G_MODULE_IMPL_DL 1
#define G_MODULE_IMPL_WIN32 3
-#define G_MODULE_IMPL_DYLD 6
#define G_MODULE_IMPL_AR 7
#define G_MODULE_IMPL @G_MODULE_IMPL@
diff --git a/gmodule/meson.build b/gmodule/meson.build
index 5fce96de1..9801c9476 100644
--- a/gmodule/meson.build
+++ b/gmodule/meson.build
@@ -15,10 +15,6 @@ 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
endif
# additional checks for G_MODULE_IMPL_DL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]