summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-10-31 20:21:32 +0100
committerPavel Šimerda <psimerda@redhat.com>2012-10-31 21:08:18 +0100
commit1977fb6c4912f055ce05fcd5da354ce1be39c01e (patch)
treec751b59c4418496dc66460647765aa5b25b2cfb7 /examples
parent59f2cd0f8d9a934b47822dcf31015d2aedeaea35 (diff)
build: clean up GLib-related pkg-config usage (bgo #687218)
We had separate checks for glib-2.0, gobject-2.0, gmodule-2.0, and gio-unix-2.0. It doesn't make sense to link a binary against all 4 because gio-unix-2.0 depends on glib-2.0 and gobject-2.0. Doing this actually breaks things in unusual circumstances. Generally, few bits of NM actually just use glib, and not gio. We might as well coalesce those requirements together, even if it means in some cases we "overlink". Additionally, I chose for now to fold gmodule-2.0 in as well, even though many fewer programs need it. The cost of overlinking is quite small. The benefit of this is less repeated junk in Makefile.am, as well as more centralized control over GLib. A followup patch will allow us to set -DGLIB_VERSION_MIN_REQUIRED in just one place, rather than having to replicate it 4 times. The NM configure is still suboptimal - for example, libpolkit-1 depends on gio-2.0, so really we should determine the compiler flags all in one pass. But it doesn't matter too much for now.
Diffstat (limited to 'examples')
-rw-r--r--examples/C/glib/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/C/glib/Makefile.am b/examples/C/glib/Makefile.am
index 428f6adcdb..1511f60765 100644
--- a/examples/C/glib/Makefile.am
+++ b/examples/C/glib/Makefile.am
@@ -65,11 +65,11 @@ monitor_nm_running_dbus_glib_LDADD = \
monitor_nm_running_GDBus_SOURCES = monitor-nm-running-GDBus.c
monitor_nm_running_GDBus_LDADD = \
- $(GIO_LIBS)
+ $(GLIB_LIBS)
monitor_nm_state_GDBus_SOURCES = monitor-nm-state-GDBus.c
monitor_nm_state_GDBus_LDADD = \
- $(GIO_LIBS)
+ $(GLIB_LIBS)
EXTRA_DIST = \
add-connection-dbus-glib.c \