From patchwork Sat Nov 21 17:17:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Guido_G=C3=BCnther?= X-Patchwork-Id: 61963 Received: from hormel.redhat.com (hormel1.redhat.com [209.132.177.33]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nALHHb65003625 for ; Sat, 21 Nov 2009 17:17:37 GMT Received: from listman.util.phx.redhat.com (listman.util.phx.redhat.com [10.8.4.110]) by hormel.redhat.com (Postfix) with ESMTP id 53BCC61A9F9; Sat, 21 Nov 2009 12:17:37 -0500 (EST) Received: from int-mx08.intmail.prod.int.phx2.redhat.com (nat-pool.util.phx.redhat.com [10.8.5.200]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id nALHHarT014663 for ; Sat, 21 Nov 2009 12:17:36 -0500 Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.5]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nALHHaFI019856 for ; Sat, 21 Nov 2009 12:17:36 -0500 Received: from honk.sigxcpu.org (static-87-79-238-240.netcologne.de [87.79.238.240]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nALHHMiT003661 for ; Sat, 21 Nov 2009 12:17:22 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 9BB2B9C003 for ; Sat, 21 Nov 2009 18:17:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5CfwKBKoM+0E for ; Sat, 21 Nov 2009 18:17:20 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id C32F751E63; Sat, 21 Nov 2009 18:17:20 +0100 (CET) Date: Sat, 21 Nov 2009 18:17:20 +0100 From: Guido =?iso-8859-1?Q?G=FCnther?= To: dm-devel@redhat.com Message-ID: <20091121171720.GA15157@bogon.sigxcpu.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-RedHat-Spam-Score: 0.185 (AWL) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.5 X-loop: dm-devel@redhat.com Subject: [dm-devel] [PATCH] multipath-tools: add a soname to the library X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.5 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sun, 30 Aug 2009 14:30:34 +0200 Subject: [PATCH] set a soname --- libmultipath/Makefile | 9 ++++++--- 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.* --