Olivier Matz b031e13d7f build: fix plugin load on static build
When dpdk is compiled as static libraries, it is not possible
to load a plugin from an application. We get the following error:

  EAL: librte_pmd_xxxx.so: undefined symbol: per_lcore__rte_errno

This happens because the dpdk symbols are not exported. Add them to the
dynamic symbol table by using '-Wl,--export-dynamic'. This option was
previously present when compiled with Makefiles, it was introduced in
commit f9a08f650211 ("eal: add support for shared object drivers")

Also add it to the pkg-config file.

Fixes: 16ade738fd0d ("app/testpmd: build with meson")
Fixes: 89f0711f9ddf ("examples: build some samples with meson")
Cc: stable@dpdk.org

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
2021-01-05 23:01:36 +01:00
..
2020-11-15 15:35:11 +01:00
2020-11-15 15:35:11 +01:00
2020-11-15 15:35:11 +01:00
2020-11-15 15:35:11 +01:00
2020-11-15 15:35:11 +01:00
2020-10-20 13:17:08 +02:00
2020-11-15 15:35:11 +01:00
2020-11-15 15:35:11 +01:00
2020-10-20 13:17:08 +02:00
2020-11-15 15:35:11 +01:00
2020-11-15 15:30:21 +01:00
2020-11-15 15:35:11 +01:00
2020-11-15 15:35:11 +01:00
2020-11-15 15:35:11 +01:00
2020-11-13 19:43:26 +01:00
2020-11-15 15:35:11 +01:00
2020-11-15 15:35:11 +01:00