summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2014-10-22 17:36:22 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-12-11 01:42:02 +0100
commitff41b5785a1a6ff195852eae14659f95723bd399 (patch)
treeb2d1ea2ada68dca20998996f219bcd5c0bc1da54
parentd223059e682b10e0e766273a958f057a4482d9fe (diff)
downloaddpdk-ff41b5785a1a6ff195852eae14659f95723bd399.zip
dpdk-ff41b5785a1a6ff195852eae14659f95723bd399.tar.gz
dpdk-ff41b5785a1a6ff195852eae14659f95723bd399.tar.xz
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 <sergio.gonzalez.monroy@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
-rw-r--r--mk/rte.lib.mk2
1 files changed, 1 insertions, 1 deletions
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