1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

makefiles: use configured systemd library paths

Use discovered/selected systemd library from configure.
This commit is contained in:
Zdenek Kabelac 2023-02-11 16:06:26 +01:00
parent 0fc2d418f7
commit 50f73de4b2

View File

@ -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)