diff options
Diffstat (limited to 'gmodule/gmodule-dl.c')
-rw-r--r-- | gmodule/gmodule-dl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gmodule/gmodule-dl.c b/gmodule/gmodule-dl.c index 4eb1b4a7d..034e94bf0 100644 --- a/gmodule/gmodule-dl.c +++ b/gmodule/gmodule-dl.c @@ -115,3 +115,13 @@ _g_module_symbol (gpointer handle, return p; } + +static gchar* +_g_module_build_path (const gchar *directory, + const gchar *module_name) +{ + if (directory) + return g_strconcat (directory, "/lib", module_name, ".so", NULL); + else + return g_strconcat ("lib", module_name, ".so", NULL); +} |