From c2d49b8f7e57e5527ec400677164ec0862005fa9 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sat, 2 Mar 2002 20:30:33 +0000 Subject: [PATCH] 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) --- gmodule/ChangeLog | 6 ++++++ gmodule/gmodule-beos.c | 4 ++-- gmodule/gmodule-dl.c | 4 ++-- gmodule/gmodule-dyld.c | 4 ++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gmodule/ChangeLog b/gmodule/ChangeLog index dbeb540..bcc0a7e 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 64a5396..edd6b89 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 3ea4493..28dc8a9 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 fed8811..93bfc77 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); } -- 2.7.4