From: Sergio Gonzalez Monroy Date: Wed, 22 Oct 2014 16:36:22 +0000 (+0100) Subject: mk: fix build 32-bits shared libraries with 64-bits system X-Git-Tag: spdx-start~9965 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ff41b5785a1a6ff195852eae14659f95723bd399;p=dpdk.git mk: fix build 32-bits shared libraries with 64-bits system 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 Acked-by: Neil Horman --- diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index f458258b8f..d83e808971 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