diff --git a/devel/glib/patches/patch-ag b/devel/glib/patches/patch-ag new file mode 100644 index 00000000000..45d91e8af01 --- /dev/null +++ b/devel/glib/patches/patch-ag @@ -0,0 +1,26 @@ +--- gmodule/gmodule-dl.c.orig Tue Sep 7 17:13:05 1999 ++++ gmodule/gmodule-dl.c Tue Sep 7 17:15:32 1999 +@@ -130,15 +130,12 @@ + + static gchar* + _g_module_build_path (const gchar *directory, +- const gchar *module_name) +-{ +- if (directory && *directory) { +- if (strncmp (module_name, "lib", 3) == 0) +- return g_strconcat (directory, "/", module_name, NULL); +- else +- return g_strconcat (directory, "/lib", module_name, ".so", NULL); +- } else if (strncmp (module_name, "lib", 3) == 0) +- return g_strdup (module_name); +- else +- return g_strconcat ("lib", module_name, ".so", NULL); ++ const gchar *module_name) ++{ ++ if (directory && *directory) ++ { ++ setenv ("LD_LIBRARY_PATH", directory, TRUE); ++ } ++ return g_strconcat ("lib", ++ module_name, ".so", NULL); + }