From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id ADE0FADDA for ; Wed, 4 Feb 2015 12:43:30 +0100 (CET) Received: from hmsreliant.think-freely.org ([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YIyMh-0005sF-Or; Wed, 04 Feb 2015 06:43:29 -0500 Date: Wed, 4 Feb 2015 06:43:27 -0500 From: Neil Horman To: Panu Matilainen Message-ID: <20150204114327.GB29569@hmsreliant.think-freely.org> References: <12505651f6361349aca43b8c2e9e19f8b7901e57.1423038170.git.pmatilai@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12505651f6361349aca43b8c2e9e19f8b7901e57.1423038170.git.pmatilai@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] mk: Add DT_SONAME to shared libraries X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2015 11:43:31 -0000 On Wed, Feb 04, 2015 at 10:22:50AM +0200, Panu Matilainen wrote: > This is all-important now that the libraries are versioned: DT_SONAME > presence instructs the runtime dynamic linker to load the shared object > by the versioned name in DT_SONAME instead of the the unversioned symlink > name used during build. > > Signed-off-by: Panu Matilainen > --- > mk/rte.lib.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk > index 865a307..0d7482d 100644 > --- a/mk/rte.lib.mk > +++ b/mk/rte.lib.mk > @@ -79,7 +79,7 @@ O_TO_A_DO = @set -e; \ > $(O_TO_A) && \ > echo $(O_TO_A_CMD) > $(call exe2cmd,$(@)) > > -O_TO_S = $(LD) $(_CPU_LDFLAGS) -shared $(OBJS-y) -o $(LIB) > +O_TO_S = $(LD) $(_CPU_LDFLAGS) -shared $(OBJS-y) -Wl,-soname,$(LIB) -o $(LIB) > O_TO_S_STR = $(subst ','\'',$(O_TO_S)) #'# fix syntax highlight > O_TO_S_DISP = $(if $(V),"$(O_TO_S_STR)"," LD $(@)") > O_TO_S_DO = @set -e; \ > -- > 2.1.0 > > Acked-by: Neil Horman