From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Horman Subject: Re: mk: fix build 32bits shared libs on 64bits system Date: Mon, 8 Dec 2014 09:52:59 -0500 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 Cc: dev-VfR2kkLFssw@public.gmane.org To: Sergio Gonzalez Monroy Return-path: Content-Disposition: inline In-Reply-To: <1413995782-8716-1-git-send-email-sergio.gonzalez.monroy-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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