From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Wilck Subject: [RFC PATCH 01/20] multipath(d)/Makefile: add explicit dependency on libraries Date: Tue, 20 Feb 2018 14:26:39 +0100 Message-ID: <20180220132658.22295-2-mwilck@suse.com> References: <20180220132658.22295-1-mwilck@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180220132658.22295-1-mwilck@suse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christophe Varoqui , Hannes Reinecke Cc: dm-devel@redhat.com, Martin Wilck List-Id: dm-devel.ids Otherwise the binaries won't be re-linked if the libraries change. Signed-off-by: Martin Wilck --- multipath/Makefile | 2 +- multipathd/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/multipath/Makefile b/multipath/Makefile index 654568af3576..0828a8f72db7 100644 --- a/multipath/Makefile +++ b/multipath/Makefile @@ -14,7 +14,7 @@ OBJS = main.o all: $(EXEC) -$(EXEC): $(OBJS) +$(EXEC): $(OBJS) $(multipathdir)/libmultipath.so $(mpathcmddir)/libmpathcmd.so $(CC) $(CFLAGS) $(OBJS) -o $(EXEC) $(LDFLAGS) $(LIBDEPS) $(GZIP) $(EXEC).8 > $(EXEC).8.gz $(GZIP) $(EXEC).conf.5 > $(EXEC).conf.5.gz diff --git a/multipathd/Makefile b/multipathd/Makefile index 251690ec5e2a..4c9d29634160 100644 --- a/multipathd/Makefile +++ b/multipathd/Makefile @@ -28,7 +28,7 @@ EXEC = multipathd all : $(EXEC) -$(EXEC): $(OBJS) +$(EXEC): $(OBJS) $(multipathdir)/libmultipath.so $(mpathcmddir)/libmpathcmd.so $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -o $(EXEC) $(LIBDEPS) $(GZIP) $(EXEC).8 > $(EXEC).8.gz -- 2.16.1