From 67dc71d344730cd120cdfc294ab56ba392511dd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=B6ller?= Date: Mon, 25 Jan 2021 17:21:39 +0100 Subject: iscsid: Add NO_SYSTEMD to CFLAGS When building with NO_SYSTEMD=1 set the -DNO_SYSTEMD CFLAG, otherwise the iscsid build tries to include the systemd header and aborts: iscsid.c:38:10: fatal error: systemd/sd-daemon.h: No such file or directory --- usr/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/Makefile b/usr/Makefile index 21bb154..fe7430a 100644 --- a/usr/Makefile +++ b/usr/Makefile @@ -43,6 +43,8 @@ ISCSI_LIB = -L$(TOPDIR)/libopeniscsiusr -lopeniscsiusr LDFLAGS += $(shell $(PKG_CONFIG) --libs libkmod) ifeq ($(NO_SYSTEMD),) LDFLAGS += $(shell $(PKG_CONFIG) --libs libsystemd) +else +CFLAGS += -DNO_SYSTEMD endif PROGRAMS = iscsid iscsiadm iscsistart -- cgit v1.2.1