summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-11-21 18:19:55 +0100
committerChristophe Varoqui <christophe.varoqui@free.fr>2009-11-22 01:02:35 +0100
commit39912314d3eaea6c098c1c41ba69d1cc8e66ba10 (patch)
tree3ac1bc98de42e7ec7668bec205f1be18ab160208
parent0c91f95e50e961626df38ab7faf60c78601ed6e5 (diff)
downloadmultipath-tools-39912314d3eaea6c098c1c41ba69d1cc8e66ba10.tar.gz
multipath-tools-39912314d3eaea6c098c1c41ba69d1cc8e66ba10.tar.bz2
multipath-tools-39912314d3eaea6c098c1c41ba69d1cc8e66ba10.zip
multipath-tools: add library dependencies
Hi, attached patch adds dependent libraries when building the shared lib. This allows other tools like dpkg-shlibdeps to deduce the needed dependencies automatically. Cheers, -- Guido From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org> Date: Sun, 30 Aug 2009 14:18:21 +0200 Subject: [PATCH] add library dependencies
-rw-r--r--libmultipath/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmultipath/Makefile b/libmultipath/Makefile
index 3f2a48d..ec1ab9f 100644
--- a/libmultipath/Makefile
+++ b/libmultipath/Makefile
@@ -7,6 +7,7 @@ include ../Makefile.inc
SONAME=0d
DEVLIB = libmultipath.so
LIBS = $(DEVLIB).$(SONAME)
+LIBDEPS = -lpthread -ldl -ldevmapper
OBJS = memory.o parser.o vector.o devmapper.o callout.o \
hwtable.o blacklist.o util.o dmparser.o config.o \
@@ -25,7 +26,7 @@ endif
all: $(LIBS)
$(LIBS): $(OBJS)
- $(CC) $(SHARED_FLAGS) -Wl,-soname=$@ $(CFLAGS) -o $@ $(OBJS)
+ $(CC) $(SHARED_FLAGS) $(LIBDEPS) -Wl,-soname=$@ $(CFLAGS) -o $@ $(OBJS)
ln -sf $@ $(DEVLIB)
install: