diff options
author | Bruce Richardson <bruce.richardson@intel.com> | 2018-09-17 09:18:00 +0100 |
---|---|---|
committer | Thomas Monjalon <thomas@monjalon.net> | 2018-09-17 11:52:57 +0200 |
commit | 7a9eac097443fcd9f7fd3a1dd4ca86d46a2e09b9 (patch) | |
tree | bceb72fa363e1738b8671d0da4c08ffdbd00f970 /config | |
parent | 0b5284ad575d542a8a26eaa5fe8d34aba9f8b59b (diff) | |
download | dpdk-next-eventdev-7a9eac097443fcd9f7fd3a1dd4ca86d46a2e09b9.zip dpdk-next-eventdev-7a9eac097443fcd9f7fd3a1dd4ca86d46a2e09b9.tar.gz dpdk-next-eventdev-7a9eac097443fcd9f7fd3a1dd4ca86d46a2e09b9.tar.xz |
compat: fix symbol version support with meson
For meson builds, the define to enable the symbol version
macros in rte_compat.h was missing. This led to symbols being
omitted from shared objects. For example, checking rte_distributor.so
with objdump and comparing make and meson built versions:
$ objdump -T make-build/lib/librte_distributor.so | grep _flush
0000000000001b60 g DF .text 00000000000000a7 (DPDK_2.0) rte_distributor_flush
0000000000003f10 g DF .text 0000000000000434 DPDK_17.05 rte_distributor_flush
$ objdump -T meson-build/lib/librte_distributor.so | grep _flush
0000000000001d50 g DF .text 00000000000000fb DPDK_2.0 rte_distributor_flush
Adding in the missing define fixes this.
Fixes: 5b9656b157d3 ("lib: build with meson")
Cc: stable@dpdk.org
Reported-by: Luca Boccassi <bluca@debian.org>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'config')
-rw-r--r-- | config/rte_config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/rte_config.h b/config/rte_config.h index a8e4797..46775a8 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -20,6 +20,9 @@ /****** library defines ********/ +/* compat defines */ +#define RTE_BUILD_SHARED_LIB + /* EAL defines */ #define RTE_MAX_MEMSEG_LISTS 128 #define RTE_MAX_MEMSEG_PER_LIST 8192 |