build: set RTE_ARCH_64 based on pointer size
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 26 Sep 2018 09:15:36 +0000 (10:15 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 26 Feb 2019 17:34:28 +0000 (18:34 +0100)
commitd23e141ffa52e3ae13a5fd1c1cfb88f40cbd06f3
tree82581e368a8279a9f17ea98abfd1a1e7c9ebae9f
parent3655096fb1dee33ce1e1f63da7b8b3b0c3aa3c2d
build: set RTE_ARCH_64 based on pointer size

Rather than relying on the target machine architecture, use the
size of a pointer from the compiler to determine if we are 64-bits
or not. This allows correct behaviour when you pass -m32 as a compile
option. It also allows us to use this value repeatedly throughout the
repo rather than continually testing for the sizeof(void*).

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Luca Boccassi <bluca@debian.org>
Acked-by: Luca Boccassi <bluca@debian.org>
config/arm/meson.build
config/meson.build
config/ppc_64/meson.build
config/x86/meson.build
drivers/net/enic/meson.build
drivers/net/sfc/meson.build
lib/librte_bpf/meson.build
lib/librte_kni/meson.build