summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-11-21 18:17:20 +0100
committerChristophe Varoqui <christophe.varoqui@free.fr>2009-11-22 01:01:24 +0100
commit0c91f95e50e961626df38ab7faf60c78601ed6e5 (patch)
treefe54c39ff0f13a7e051b839b45fb88d688e51dbf
parent80cc7f22f061626eca5bf4f39cad515923b29bb9 (diff)
downloadmultipath-tools-0c91f95e50e961626df38ab7faf60c78601ed6e5.tar.gz
multipath-tools-0c91f95e50e961626df38ab7faf60c78601ed6e5.tar.bz2
multipath-tools-0c91f95e50e961626df38ab7faf60c78601ed6e5.zip
multipath-tools: add a soname to the library
Hi, attached patch adds a fake soname to the created lib making tools such as lintian happy. I can keep this debian specific if need be but having a soname certainly won't hurt. Cheers, -- Guido From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org> Date: Sun, 30 Aug 2009 14:30:34 +0200 Subject: [PATCH] set a soname
-rw-r--r--libmultipath/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/libmultipath/Makefile b/libmultipath/Makefile
index d59e2f3..3f2a48d 100644
--- a/libmultipath/Makefile
+++ b/libmultipath/Makefile
@@ -4,7 +4,9 @@
#
include ../Makefile.inc
-LIBS = libmultipath.so
+SONAME=0d
+DEVLIB = libmultipath.so
+LIBS = $(DEVLIB).$(SONAME)
OBJS = memory.o parser.o vector.o devmapper.o callout.o \
hwtable.o blacklist.o util.o dmparser.o config.o \
@@ -23,7 +25,8 @@ endif
all: $(LIBS)
$(LIBS): $(OBJS)
- $(CC) $(SHARED_FLAGS) -Wl,-soname,$@ $(CFLAGS) -o $@ $(OBJS)
+ $(CC) $(SHARED_FLAGS) -Wl,-soname=$@ $(CFLAGS) -o $@ $(OBJS)
+ ln -sf $@ $(DEVLIB)
install:
$(INSTALL_PROGRAM) -d $(DESTDIR)$(syslibdir)
@@ -34,4 +37,4 @@ uninstall:
rm -f $(DESTDIR)$(syslibdir)/$(LIBS)
clean:
- rm -f core *.a *.o *.gz *.so
+ rm -f core *.a *.o *.gz *.so *.so.*