mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-29 21:33:30 +02:00
applied patch from David Schleef <ds@schleef.org> which implements a
Fri Feb 20 02:39:03 2004 Tim Janik <timj@gtk.org> * applied patch from David Schleef <ds@schleef.org> which implements a G_MODULE_BIND_LOCAL flag to g_module_open() to disable global symbol registration.
This commit is contained in:
@@ -67,9 +67,21 @@
|
||||
|
||||
|
||||
/* --- functions --- */
|
||||
|
||||
/*
|
||||
* shl_load() does not appear to support making symbols invisible to
|
||||
* the global namespace. However, the default is to put the library
|
||||
* last in the search order, which is approximately what we want,
|
||||
* since it will cause symbols that conflict with existing symbols to
|
||||
* be invisible. It is unclear if BIND_FIRST should be used when
|
||||
* bind_local==0, since it may cause the loaded symbols to be used
|
||||
* preferentially to the application's symbols, which is Almost
|
||||
* Always Wrong. --ds
|
||||
*/
|
||||
static gpointer
|
||||
_g_module_open (const gchar *file_name,
|
||||
gboolean bind_lazy)
|
||||
gboolean bind_lazy,
|
||||
gboolean bind_local)
|
||||
{
|
||||
shl_t shl_handle;
|
||||
|
||||
|
Reference in New Issue
Block a user