From a1f40adf733b64500b09e0d02d51967b43df9ee5 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 10 Jan 2013 16:25:15 -0500 Subject: [PATCH] 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 file changed, 3 insertions(+) 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]); -- 2.7.4