From 5af359eda5ae08881424d90acc59cbfbcd6c1e28 Mon Sep 17 00:00:00 2001 From: Heath Kehoe Date: Mon, 2 Aug 2010 20:33:59 +0200 Subject: [PATCH] Build fixes the -L argument for a library must come before the library itself (otherwise it's going to link against the library in /usr/lib and not the one in the build directory) --- multipath/Makefile | 2 +- multipathd/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/multipath/Makefile b/multipath/Makefile index 5cbab2f..f748417 100644 --- a/multipath/Makefile +++ b/multipath/Makefile @@ -7,7 +7,7 @@ include ../Makefile.inc OBJS = main.o CFLAGS += -I$(multipathdir) -LDFLAGS += -lpthread -ldevmapper -ldl -lmultipath -L$(multipathdir) +LDFLAGS += -lpthread -ldevmapper -ldl -L$(multipathdir) -lmultipath EXEC = multipath diff --git a/multipathd/Makefile b/multipathd/Makefile index 51208c3..03b0aa2 100644 --- a/multipathd/Makefile +++ b/multipathd/Makefile @@ -7,7 +7,7 @@ include ../Makefile.inc # CFLAGS += -I$(multipathdir) LDFLAGS += -lpthread -ldevmapper -lreadline -lncurses -ldl \ - -lmultipath -L$(multipathdir) + -L$(multipathdir) -lmultipath # # debuging stuff -- 2.7.4