Use G_MODULE_SUFFIX rather than a hardcoded ".so". (#72803)
authorOwen Taylor <otaylor@redhat.com>
Sat, 2 Mar 2002 20:30:33 +0000 (20:30 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sat, 2 Mar 2002 20:30:33 +0000 (20:30 +0000)
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)

gmodule/ChangeLog
gmodule/gmodule-beos.c
gmodule/gmodule-dl.c
gmodule/gmodule-dyld.c

index dbeb540..bcc0a7e 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Sun Feb 17 18:15:22 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gmodule.c (g_module_open): Fix typo when checking
index 64a5396..edd6b89 100644 (file)
@@ -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);
 }
index 3ea4493..28dc8a9 100644 (file)
@@ -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);
 }
index fed8811..93bfc77 100644 (file)
@@ -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);
 }