summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2022-04-04 12:38:46 -0700
committerLee Duncan <lduncan@suse.com>2022-04-04 13:26:56 -0700
commit35b096fadfac22054492904a587fb216d57789b3 (patch)
tree29ddab780f65bbf169bb4f53f5fc4e6865255b9a /usr
parenta710269efb0c51f37c154010551e3f5a7df3685a (diff)
downloadopen-iscsi-35b096fadfac22054492904a587fb216d57789b3.tar.gz
Build: add libsystemd CFLAGS for building objects
This is already done for libkod in usr/Makefile, so do the same for libsystemd, even though most times these flags will be empty, that is not always the case.
Diffstat (limited to 'usr')
-rw-r--r--usr/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/Makefile b/usr/Makefile
index 41afa63..8f91ee1 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -48,6 +48,7 @@ WARNFLAGS ?= -Wall -Wextra -Werror -Wstrict-prototypes -fno-common
CFLAGS += $(WARNFLAGS) -I../include -I. -D_GNU_SOURCE \
-I$(TOPDIR)/libopeniscsiusr
CFLAGS += $(shell $(PKG_CONFIG) --cflags libkmod)
+CFLAGS += $(shell $(PKG_CONFIG) --cflags libsystemd)
ISCSI_LIB = -L$(TOPDIR)/libopeniscsiusr -lopeniscsiusr
LDFLAGS += $(shell $(PKG_CONFIG) --libs libkmod)
ifeq ($(NO_SYSTEMD),)