From ff41b5785a1a6ff195852eae14659f95723bd399 Mon Sep 17 00:00:00 2001 From: Sergio Gonzalez Monroy Date: Wed, 22 Oct 2014 17:36:22 +0100 Subject: [PATCH] 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 --- 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 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 -- 2.20.1