From ba954cac5a04829965c0ac57de3a4ff47ba2034c Mon Sep 17 00:00:00 2001 From: Emanuele Aina Date: Tue, 17 Sep 2013 06:16:41 +0200 Subject: [PATCH] module-tunnel: Fix building with HAVE_X11 Link to the X11 libs (XCB) from the tunnel source and sink modules to fix the following build error: CCLD module-tunnel-source.la .libs/module_tunnel_sink_la-module-tunnel.o: In function `module_tunnel_sink_LTX_pa__init': /build/pulseaudio/src/modules/module-tunnel.c:1987: undefined reference to `xcb_connect' https://bugs.freedesktop.org/show_bug.cgi?id=69448 --- src/Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index 9d96a9b..a0aea03 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1655,10 +1655,20 @@ module_tunnel_sink_la_CFLAGS = -DTUNNEL_SINK=1 $(AM_CFLAGS) module_tunnel_sink_la_LDFLAGS = $(MODULE_LDFLAGS) module_tunnel_sink_la_LIBADD = $(MODULE_LIBADD) +if HAVE_X11 +module_tunnel_sink_la_LDFLAGS += $(X11_CFLAGS) +module_tunnel_sink_la_LIBADD += $(X11_LIBS) +endif + module_tunnel_source_la_SOURCES = modules/module-tunnel.c module_tunnel_source_la_LDFLAGS = $(MODULE_LDFLAGS) module_tunnel_source_la_LIBADD = $(MODULE_LIBADD) +if HAVE_X11 +module_tunnel_source_la_LDFLAGS += $(X11_CFLAGS) +module_tunnel_source_la_LIBADD += $(X11_LIBS) +endif + module_loopback_la_SOURCES = modules/module-loopback.c module_loopback_la_LDFLAGS = $(MODULE_LDFLAGS) module_loopback_la_LIBADD = $(MODULE_LIBADD) -- 1.8.4.rc3