From: Simon McVittie Date: Tue, 16 Apr 2013 16:45:36 +0000 (+0100) Subject: Disable sd-daemon.c's support for POSIX message queues X-Git-Tag: dbus-1.7.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=684916fb67f9b573aacc57f18a6928042462a733;p=thirdparty%2Fdbus.git Disable sd-daemon.c's support for POSIX message queues This fixes build failures with recent glibc while avoiding an otherwise useless librt dependency. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=63166 Reviewed-by: Thiago Macieira --- diff --git a/dbus/Makefile.am b/dbus/Makefile.am index 3679e3f91..87e818a69 100644 --- a/dbus/Makefile.am +++ b/dbus/Makefile.am @@ -12,6 +12,10 @@ AM_CPPFLAGS = \ -DDBUS_SESSION_CONFIG_FILE=\""$(configdir)/session.conf"\" \ $(NULL) +# On Linux with glibc 2.17, sd-daemon.c support for POSIX message queues +# results in an otherwise unnecessary dependency on librt. Disable it. +AM_CPPFLAGS += -DSD_DAEMON_DISABLE_MQ + # if assertions are enabled, improve backtraces AM_LDFLAGS = @R_DYNAMIC_LDFLAG@