mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
as a last resort, if we can't access() the module, leave it up to the
Mon May 28 20:19:25 2001 Tim Janik <timj@gtk.org> * gmodule.c (g_module_open): as a last resort, if we can't access() the module, leave it up to the platform backends to find it. (fixes implicit search patch loading i broke with my last commit, spotted by Padraig O'Briain).
This commit is contained in:
parent
1b1bbd0ddc
commit
2d0ea4af6c
@ -1,3 +1,10 @@
|
|||||||
|
Mon May 28 20:19:25 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gmodule.c (g_module_open): as a last resort, if we can't access()
|
||||||
|
the module, leave it up to the platform backends to find it.
|
||||||
|
(fixes implicit search patch loading i broke with my last
|
||||||
|
commit, spotted by Padraig O'Briain).
|
||||||
|
|
||||||
Thu May 24 03:43:12 2001 Tim Janik <timj@gtk.org>
|
Thu May 24 03:43:12 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gmodule.c (g_module_open): reordered code so we have a single
|
* gmodule.c (g_module_open): reordered code so we have a single
|
||||||
|
@ -343,7 +343,7 @@ g_module_open (const gchar *file_name,
|
|||||||
name = NULL;
|
name = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* last resort, try appending libtool suffix */
|
/* try completing by appending libtool suffix */
|
||||||
if (!name)
|
if (!name)
|
||||||
{
|
{
|
||||||
name = g_strconcat (file_name, ".la");
|
name = g_strconcat (file_name, ".la");
|
||||||
@ -353,6 +353,11 @@ g_module_open (const gchar *file_name,
|
|||||||
name = NULL;
|
name = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* we can't access() the file, lets hope the platform backends finds
|
||||||
|
* it via library paths
|
||||||
|
*/
|
||||||
|
if (!name)
|
||||||
|
name = g_strdup (file_name);
|
||||||
|
|
||||||
/* ok, try loading the module */
|
/* ok, try loading the module */
|
||||||
if (name)
|
if (name)
|
||||||
|
Loading…
Reference in New Issue
Block a user