From 04c822609a75bc7beb55a92414e4f553deced9fc Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 19 Jan 2011 16:48:47 +0100 Subject: [PATCH] Pass shared-library as-is to g_module_open Because it already has the lib prefix and the .so postfix https://bugzilla.gnome.org/show_bug.cgi?id=639961 --- gitypelib.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gitypelib.c b/gitypelib.c index 90f2c1bbb..3ecfb16b6 100644 --- a/gitypelib.c +++ b/gitypelib.c @@ -2129,10 +2129,6 @@ _g_typelib_do_dlopen (GITypelib *typelib) { GString *shlib_full = g_string_new (shlibs[i]); - /* Prefix with "lib", try both .la and .so */ - if (!g_str_has_prefix (shlib_full->str, "lib")) - g_string_prepend (shlib_full, "lib"); - g_string_append (shlib_full, ".la"); module = g_module_open (shlib_full->str, G_MODULE_BIND_LAZY); if (module == NULL) {