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 D2F96DE0 for ; Mon, 8 Dec 2014 15:53:22 +0100 (CET) Received: from rrcs-70-62-112-196.midsouth.biz.rr.com ([70.62.112.196] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1XxzgM-0000vT-FM; Mon, 08 Dec 2014 09:53:11 -0500 Date: Mon, 8 Dec 2014 09:52:59 -0500 From: Neil Horman To: Sergio Gonzalez Monroy Message-ID: <20141208145259.GF3237@localhost.localdomain> References: <1413995782-8716-1-git-send-email-sergio.gonzalez.monroy@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1413995782-8716-1-git-send-email-sergio.gonzalez.monroy@intel.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] mk: fix build 32bits shared libs on 64bits system 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: Mon, 08 Dec 2014 14:53:23 -0000 On Wed, Oct 22, 2014 at 05:36:22PM +0100, Sergio Gonzalez Monroy wrote: > Incompatible libraries error when building shared libraries for 32bits on > a 64bits system. > Fix issue by passing CPU_CFLAGS to CC when LINK_USING_CC is enabled. > > Signed-off-by: Sergio Gonzalez Monroy > Acked-by: Pablo de Lara > > --- > 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 f458258..d83e808 100644 > --- a/mk/rte.lib.mk > +++ b/mk/rte.lib.mk > @@ -61,7 +61,7 @@ exe2cmd = $(strip $(call dotfile,$(patsubst %,%.cmd,$(1)))) > > ifeq ($(LINK_USING_CC),1) > # Override the definition of LD here, since we're linking with CC > -LD := $(CC) > +LD := $(CC) $(CPU_CFLAGS) > LD_MULDEFS := $(call linkerprefix,-z$(comma)muldefs) > CPU_LDFLAGS := $(call linkerprefix,$(CPU_LDFLAGS)) > endif Acked-by: Neil Horman