Disable sd-daemon.c's support for POSIX message queues
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 16 Apr 2013 16:45:36 +0000 (17:45 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 23 Apr 2013 16:46:24 +0000 (17:46 +0100)
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 <thiago@kde.org>
dbus/Makefile.am

index 3679e3f..87e818a 100644 (file)
@@ -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@