From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 71DE48DAC for ; Fri, 20 Nov 2015 16:40:35 +0100 (CET) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=[192.168.0.10]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1ZznoJ-00049s-Oa; Fri, 20 Nov 2015 16:41:16 +0100 Message-ID: <564F3EED.6040908@6wind.com> Date: Fri, 20 Nov 2015 16:40:29 +0100 From: Olivier MATZ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: Thomas Monjalon References: <1448028175-22022-1-git-send-email-thomas.monjalon@6wind.com> In-Reply-To: <1448028175-22022-1-git-send-email-thomas.monjalon@6wind.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] mk: fix extra options when linking lib through compiler 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: Fri, 20 Nov 2015 15:40:35 -0000 Hi, On 11/20/2015 03:02 PM, Thomas Monjalon wrote: > When using a linker option not known by the compiler like -rpath, > the library linkage was failing. > It is fixed by prefixing the option with -Wl, as it is done in other > makefiles. > > Signed-off-by: Thomas Monjalon > --- > mk/rte.lib.mk | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk > index fcc8e20..06a1519 100644 > --- a/mk/rte.lib.mk > +++ b/mk/rte.lib.mk > @@ -68,6 +68,7 @@ ifeq ($(LINK_USING_CC),1) > # Override the definition of LD here, since we're linking with CC > LD := $(CC) $(CPU_CFLAGS) > _CPU_LDFLAGS := $(call linkerprefix,$(CPU_LDFLAGS)) > +override EXTRA_LDFLAGS := $(call linkerprefix,$(EXTRA_LDFLAGS)) > else > _CPU_LDFLAGS := $(CPU_LDFLAGS) > endif > Acked-by: Olivier Matz