From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] mk: fix ABI versioning compile error for combined shared library Date: Mon, 02 Nov 2015 00:24:51 +0100 Message-ID: <4489406.qekDmzhmkY@xps13> References: <1706989.WgznurFLZ8@xps13> <1446419842-22920-1-git-send-email-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Eric Kinzie To: Ferruh Yigit Return-path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 8139411A2 for ; Mon, 2 Nov 2015 00:26:02 +0100 (CET) Received: by wmff134 with SMTP id f134so46101867wmf.1 for ; Sun, 01 Nov 2015 15:26:02 -0800 (PST) In-Reply-To: <1446419842-22920-1-git-send-email-ferruh.yigit@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-11-01 23:17, Ferruh Yigit: > Fixes following error: > LD libdpdk.so > /usr/bin/ld: /root/dpdk/build/lib/libdpdk.so: version node not found > for symbol @DPDK_x.y > --- a/mk/rte.sharelib.mk > +++ b/mk/rte.sharelib.mk > @@ -40,6 +40,7 @@ LIB_ONE := lib$(RTE_LIBNAME).so > else > LIB_ONE := lib$(RTE_LIBNAME).a > endif > +SHARED_LDFLAGS += --version-script=./lib/libdpdk.map > endif It looks to be the right thing to do. > ifeq ($(LINK_USING_CC),1) > # Override the definition of LD here, since we're linking with CC > LD := $(CC) $(CPU_CFLAGS) > -O_TO_S = $(LD) $(call linkerprefix,$(CPU_LDFLAGS)) \ > +O_TO_S = $(LD) $(call linkerprefix,$(SHARED_LDFLAGS)) \ > -shared $(OBJS) -o $(RTE_OUTPUT)/lib/$(LIB_ONE) > else > -O_TO_S = $(LD) $(CPU_LDFLAGS) \ > +O_TO_S = $(LD) $(SHARED_LDFLAGS) \ > -shared $(OBJS) -o $(RTE_OUTPUT)/lib/$(LIB_ONE) > endif Why do you remove CPU_LDFLAGS?