From: Owen Taylor Date: Sat, 2 Mar 2002 20:30:33 +0000 (+0000) Subject: Use G_MODULE_SUFFIX rather than a hardcoded ".so". (#72803) X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=c2d49b8f7e57e5527ec400677164ec0862005fa9;p=dana%2Fcg-glib.git Use G_MODULE_SUFFIX rather than a hardcoded ".so". (#72803) Sat Mar 2 14:46:17 2002 Owen Taylor * 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) --- diff --git a/gmodule/ChangeLog b/gmodule/ChangeLog index dbeb5405..bcc0a7e8 100644 --- a/gmodule/ChangeLog +++ b/gmodule/ChangeLog @@ -1,3 +1,9 @@ +Sat Mar 2 14:46:17 2002 Owen Taylor + + * 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) + Sun Feb 17 18:15:22 2002 Owen Taylor * gmodule.c (g_module_open): Fix typo when checking diff --git a/gmodule/gmodule-beos.c b/gmodule/gmodule-beos.c index 64a5396f..edd6b893 100644 --- a/gmodule/gmodule-beos.c +++ b/gmodule/gmodule-beos.c @@ -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); } diff --git a/gmodule/gmodule-dl.c b/gmodule/gmodule-dl.c index 3ea44933..28dc8a90 100644 --- a/gmodule/gmodule-dl.c +++ b/gmodule/gmodule-dl.c @@ -154,9 +154,9 @@ _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); } diff --git a/gmodule/gmodule-dyld.c b/gmodule/gmodule-dyld.c index fed88117..93bfc777 100644 --- a/gmodule/gmodule-dyld.c +++ b/gmodule/gmodule-dyld.c @@ -141,10 +141,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); }