[glib] gio-querymodules: Ensure we're linked to GObject
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio-querymodules: Ensure we're linked to GObject
- Date: Fri, 11 Jan 2013 03:24:18 +0000 (UTC)
commit a1f40adf733b64500b09e0d02d51967b43df9ee5
Author: Colin Walters <walters verbum org>
Date: Thu Jan 10 16:25:15 2013 -0500
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
gio/gio-querymodules.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gio/gio-querymodules.c b/gio/gio-querymodules.c
index f445831..ee60fef 100644
--- a/gio/gio-querymodules.c
+++ b/gio/gio-querymodules.c
@@ -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]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]