[dpdk-dev] mk: fix build 32bits shared libs on 64bits system
Neil Horman
nhorman at tuxdriver.com
Mon Dec 8 15:52:59 CET 2014
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 <sergio.gonzalez.monroy at intel.com>
> Acked-by: Pablo de Lara <pablo.de.lara.guarch at 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
Acked-by: Neil Horman <nhorman at tuxdriver.com>
More information about the dev
mailing list