diff options
author | Fabian Möller <fabianm88@gmail.com> | 2021-01-25 17:21:39 +0100 |
---|---|---|
committer | Fabian Möller <fabianm88@gmail.com> | 2021-01-25 17:21:39 +0100 |
commit | 67dc71d344730cd120cdfc294ab56ba392511dd3 (patch) | |
tree | 8fb2f7f10cc8bf6af292dd7bd44e78282229ed11 | |
parent | 46c346f4e15826ba45288143cd4eb6e71bbb77a2 (diff) | |
download | open-iscsi-67dc71d344730cd120cdfc294ab56ba392511dd3.tar.gz |
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
-rw-r--r-- | usr/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
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 |