diff options
author | Heath Kehoe <hkehoe@budcat.com> | 2010-08-02 20:33:59 +0200 |
---|---|---|
committer | Christophe Varoqui <christophe.varoqui@opensvc.com> | 2010-08-02 20:33:59 +0200 |
commit | 5af359eda5ae08881424d90acc59cbfbcd6c1e28 (patch) | |
tree | 4d040a1f2d4858a3526644a4b44717604760d67d | |
parent | 46d5e4357e25e15857e0a151a1c43676e38dbd5b (diff) | |
download | multipath-tools-5af359eda5ae08881424d90acc59cbfbcd6c1e28.tar.gz |
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)
-rw-r--r-- | multipath/Makefile | 2 | ||||
-rw-r--r-- | 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 |