DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] mk: fix build 32bits shared libs on 64bits system
@ 2014-10-22 16:36 Sergio Gonzalez Monroy
  2014-10-28 16:30 ` De Lara Guarch, Pablo
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sergio Gonzalez Monroy @ 2014-10-22 16:36 UTC (permalink / raw)
  To: dev

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>
---
 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
-- 
1.9.3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-12-11  0:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-22 16:36 [dpdk-dev] [PATCH] mk: fix build 32bits shared libs on 64bits system Sergio Gonzalez Monroy
2014-10-28 16:30 ` De Lara Guarch, Pablo
2014-11-28 15:48 ` Thomas Monjalon
2014-12-01  9:51   ` Gonzalez Monroy, Sergio
2014-12-08 14:52 ` [dpdk-dev] " Neil Horman
2014-12-11  0:49   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).