Skip to contentSkip to conversation

main - makefiles: use configured systemd library paths

PATCH Zdenek Kabelac 1 participant 1 message Feb 13, 2023

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=50f73de4b27c11c810c8f7aea3e36a5c947408af
Commit:        50f73de4b27c11c810c8f7aea3e36a5c947408af
Parent:        0fc2d418f76a9e98ab988ff5a3440a3beef5295f
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sat Feb 11 16:06:26 2023 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Feb 13 13:41:59 2023 +0100

makefiles: use configured systemd library paths

Use discovered/selected systemd library from configure.

---
 daemons/lvmlockd/Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
daemons/lvmlockd/Makefile.in +2 -2
index 91beb1ad8..e5ba82517 100644
@@ -52,8 +52,8 @@ LDFLAGS += -L$(top_builddir)/libdaemon/server $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS)
 LIBS += $(DAEMON_LIBS) $(PTHREAD_LIBS)
 
 ifeq ($(USE_SD_NOTIFY),yes)
-	CFLAGS += $(shell pkg-config --cflags libsystemd) -DUSE_SD_NOTIFY
-	LIBS += $(shell pkg-config --libs libsystemd)
+	CFLAGS += $(SYSTEMD_CFLAGS) -DUSE_SD_NOTIFY
+	LIBS += $(SYSTEMD_LIBS)
 endif
 
 lvmlockd: $(OBJECTS) $(top_builddir)/libdaemon/server/libdaemonserver.a $(INTERNAL_LIBS)