From d93a90585808dd4514df027923af1dc06e8ec44a Mon Sep 17 00:00:00 2001 From: Alejandro Leiva Date: Mon, 11 Jun 2012 12:44:47 +0200 Subject: [PATCH] bfo #50958 - Fix undefined reference to 'g_bus_get_sync' adding GIO library to linker. Signed-off-by: Richard Hughes --- contrib/systemd-updates/Makefile.am | 1 + contrib/systemd-updates/pk-offline-update.c | 1 + 2 files changed, 2 insertions(+) diff --git a/contrib/systemd-updates/Makefile.am b/contrib/systemd-updates/Makefile.am index aa400e840..622eeb4f3 100644 --- a/contrib/systemd-updates/Makefile.am +++ b/contrib/systemd-updates/Makefile.am @@ -28,6 +28,7 @@ pk_offline_update_SOURCES = \ pk_offline_update_LDADD = \ $(GLIB_LIBS) \ + $(GIO_LIBS) \ $(PK_GLIB2_LIBS) pk_offline_update_CFLAGS = \ diff --git a/contrib/systemd-updates/pk-offline-update.c b/contrib/systemd-updates/pk-offline-update.c index 9e51da623..5d6604dad 100644 --- a/contrib/systemd-updates/pk-offline-update.c +++ b/contrib/systemd-updates/pk-offline-update.c @@ -21,6 +21,7 @@ #include #include +#include #include #include