numam-dpdk/app
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 f9a08f6502 ("eal: add support for shared object drivers")

Also add it to the pkg-config file.

Fixes: 16ade738fd ("app/testpmd: build with meson")
Fixes: 89f0711f9d ("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
..
pdump eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
proc-info app/procinfo: clean old build macro 2020-10-26 12:03:31 +01:00
test test/eal: remove unneeded command 2020-11-20 09:58:55 +01:00
test-acl eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
test-bbdev app/bbdev: dequeue full ring in offload test 2020-11-02 09:24:41 +01:00
test-cmdline cmdline: avoid name clash with Windows system types 2020-11-05 17:49:00 +01:00
test-compress-perf eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
test-crypto-perf eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
test-eventdev app/eventdev: check timer adadpters number 2020-11-13 09:52:11 +01:00
test-fib fix spellings that Lintian complains about 2020-11-04 20:11:31 +01:00
test-flow-perf app/flow-perf: fix raw encapsulation size 2020-11-22 17:07:34 +01:00
test-pipeline eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
test-pmd app/testpmd: fix build without i40e 2020-11-26 01:01:02 +01:00
test-regex app/regex: add job context 2020-11-03 02:06:03 +01:00
test-sad eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
meson.build build: fix plugin load on static build 2021-01-05 23:01:36 +01:00