mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Bug 522384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
On Darwin, the suffix for installed shared libraries (.dylib) is different from loadable modules (.so). We use a bit of magic shell script from Behdad Esfahbod to figure out the right suffix. svn path=/trunk/; revision=612
This commit is contained in:
parent
450476b1a7
commit
4e4c8c137d
@ -24,6 +24,7 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "gtypelib.h"
|
||||
|
||||
typedef struct {
|
||||
@ -1977,7 +1978,7 @@ _g_typelib_init (GTypelib *typelib)
|
||||
g_string_append (shlib_full, ".la");
|
||||
typelib->module = g_module_open (shlib_full->str, G_MODULE_BIND_LAZY);
|
||||
if (typelib->module == NULL)
|
||||
g_string_overwrite (shlib_full, strlen (shlib_full->str)-2, G_MODULE_SUFFIX);
|
||||
g_string_overwrite (shlib_full, strlen (shlib_full->str)-2, SHLIB_SUFFIX);
|
||||
typelib->module = g_module_open (shlib_full->str, G_MODULE_BIND_LAZY);
|
||||
|
||||
g_string_free (shlib_full, TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user