From 5445d17c3697334c6ad73bc80bc5eb7ec1364445 Mon Sep 17 00:00:00 2001 From: Mauro Guerrera Date: Mon, 10 Nov 2014 18:15:08 +0000 Subject: [PATCH] build-sys: Fix daemon linking when building with systemd-daemon support Seems that after commit 467b4b9be systemd usage has been added into src/daemon/main.c but there is no link for the corresponding library in the final pulseaudio binary. This might be missed in some build systemd due to overlinking, but it's correct to add this in here explicitly Signed-off-by: Colin Guthrie --- src/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index a4a66c575..3cab31f14 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -171,6 +171,11 @@ else pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(IMMEDIATE_LDFLAGS) -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f)) endif +if HAVE_SYSTEMD_DAEMON +pulseaudio_CFLAGS += $(SYSTEMD_FLAGS) $(SYSTEMDDAEMON_FLAGS) +pulseaudio_LDFLAGS += $(SYSTEMD_LIBS) $(SYSTEMDDAEMON_LIBS) +endif + ################################### # Utility programs # ###################################