From 0a73aac69a54d86860a5e8ae8b316640d196424d Mon Sep 17 00:00:00 2001 From: MyoungJune Park Date: Tue, 2 Aug 2016 14:29:18 +0900 Subject: [PATCH] global construction for dbusconnection only on _TV_PROFILE Change-Id: Ie2430ed9210984ea012b37fa455229fc13895cdb Signed-off-by: MyoungJune Park --- gio/gdbusconnection.c | 7 +++++++ packaging/glib2.spec | 3 +++ 2 files changed, 10 insertions(+) diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c index ee77538..95ade2a 100644 --- a/gio/gdbusconnection.c +++ b/gio/gdbusconnection.c @@ -8058,3 +8058,10 @@ g_bus_get_finish (GAsyncResult *res, } /* ---------------------------------------------------------------------------------------------------- */ +#ifdef _TV_PROFILE +static void __attribute__((constructor)) glib_type_dbus_connection_gc( void ) +{ + GObject* temp = g_type_class_ref(G_TYPE_DBUS_CONNECTION); + g_type_class_unref(temp); +} +#endif diff --git a/packaging/glib2.spec b/packaging/glib2.spec index d65b27f..b953100 100644 --- a/packaging/glib2.spec +++ b/packaging/glib2.spec @@ -186,6 +186,9 @@ fi %build NOCONFIGURE=1 ./autogen.sh +%if "%{?profile}" == "tv" +export CFLAGS+=" -D_TV_PROFILE" +%endif %configure \ --enable-static \ %if 0%{?with_systemtap} -- 2.7.4