mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-22 09:57:52 +02:00
Use G_MODULE_SUFFIX rather than a hardcoded ".so". (#72803)
Sat Mar 2 14:46:17 2002 Owen Taylor <otaylor@redhat.com> * gmodule-beos.c (_g_module_build_path) * gmodule-dyld.c (_g_module_build_path) gmodule-dl.c (_g_module_build_path): Use G_MODULE_SUFFIX rather than a hardcoded ".so". (#72803)
This commit is contained in:
@@ -190,10 +190,10 @@ _g_module_build_path (const gchar *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);
|
||||
return g_strconcat (directory, "/lib", module_name, "." G_MODULE_SUFFIX, NULL);
|
||||
}
|
||||
else if (strncmp (module_name, "lib", 3) == 0)
|
||||
return g_strdup (module_name);
|
||||
else
|
||||
return g_strconcat ("lib", module_name, ".so", NULL);
|
||||
return g_strconcat ("lib", module_name, "." G_MODULE_SUFFIX, NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user