From 37366ec3b061c86ce897560213df5769c5d91eb6 Mon Sep 17 00:00:00 2001 From: Marian Csontos Date: Wed, 10 Oct 2018 11:10:42 +0200 Subject: [PATCH] build: gcc can be fussy about order of libs --- daemons/lvmlockd/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/lvmlockd/Makefile.in b/daemons/lvmlockd/Makefile.in index 01abacadb..0f1386bac 100644 --- a/daemons/lvmlockd/Makefile.in +++ b/daemons/lvmlockd/Makefile.in @@ -45,7 +45,7 @@ LIBS += $(RT_LIBS) $(DAEMON_LIBS) $(PTHREAD_LIBS) ifeq ($(USE_SD_NOTIFY),yes) CFLAGS += $(shell pkg-config --cflags libsystemd) -DUSE_SD_NOTIFY - LDFLAGS += $(shell pkg-config --libs libsystemd) + LIBS += $(shell pkg-config --libs libsystemd) endif lvmlockd: $(OBJECTS) $(top_builddir)/libdaemon/client/libdaemonclient.a \