gio-querymodules: Ensure we're linked to GObject

Since we're dynamically loading objects, after the g_type_init()
change, we now need to ensure people building with --as-needed don't
lose the DT_NEEDED on libgobject.

https://bugzilla.gnome.org/show_bug.cgi?id=691077
This commit is contained in:
Colin Walters 2013-01-10 16:25:15 -05:00
parent f2a5b33270
commit a1f40adf73

View File

@ -136,6 +136,9 @@ main (gint argc,
return 1;
}
/* Be defensive and ensure we're linked to GObject */
g_type_ensure (G_TYPE_OBJECT);
for (i = 1; i < argc; i++)
query_dir (argv[i]);