From 35b096fadfac22054492904a587fb216d57789b3 Mon Sep 17 00:00:00 2001 From: Lee Duncan Date: Mon, 4 Apr 2022 12:38:46 -0700 Subject: 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. --- usr/Makefile | 1 + 1 file changed, 1 insertion(+) 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),) -- cgit v1.2.1