summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/avahi/avahi.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/avahi/avahi.mk b/package/avahi/avahi.mk
index 24967f4e49..9c6b609d24 100644
--- a/package/avahi/avahi.mk
+++ b/package/avahi/avahi.mk
@@ -90,7 +90,10 @@ AVAHI_DEPENDENCIES = \
AVAHI_CFLAGS = $(TARGET_CFLAGS)
-ifeq ($(BR2_PACKAGE_SYSTEMD),)
+ifeq ($(BR2_PACKAGE_SYSTEMD),y)
+AVAHI_CONF_OPTS += --with-systemdsystemunitdir=/usr/lib/systemd/system
+else
+AVAHI_CONF_OPTS += --with-systemdsystemunitdir=no
AVAHI_CFLAGS += -DDISABLE_SYSTEMD
endif
OpenPOWER on IntegriCloud