numam-dpdk/examples
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
..
bbdev_app examples/bbdev: switch to dynamic mbuf field 2020-10-31 16:13:11 +01:00
bond examples: enclose DPDK includes with angle brackets 2020-10-31 16:13:10 +01:00
bpf examples: remove old build system references 2020-09-07 23:51:57 +02:00
cmdline examples: restore trace point 2020-11-15 15:35:11 +01:00
distributor examples: restore trace point 2020-11-15 15:35:11 +01:00
ethtool examples: restore trace point 2020-11-15 15:35:11 +01:00
eventdev_pipeline examples: restore trace point 2020-11-15 15:35:11 +01:00
fips_validation examples/fips_validation: fix build with pkg-config 2020-11-15 15:29:19 +01:00
flow_classify eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
flow_filtering examples: restore trace point 2020-11-15 15:35:11 +01:00
helloworld examples: restore trace point 2020-11-15 15:35:11 +01:00
ioat examples: restore trace point 2020-11-15 15:35:11 +01:00
ip_fragmentation eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
ip_pipeline examples: stop processing meson file if build impossible 2020-11-12 19:33:36 +01:00
ip_reassembly examples: restore trace point 2020-11-15 15:35:11 +01:00
ipsec-secgw eal: replace blacklist/whitelist options 2020-11-16 00:11:22 +01:00
ipv4_multicast examples: restore trace point 2020-11-15 15:35:11 +01:00
kni examples/kni: fix build with pkg-config 2020-11-15 15:29:23 +01:00
l2fwd eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
l2fwd-cat examples: restore trace point 2020-11-15 15:35:11 +01:00
l2fwd-crypto examples/l2fwd-crypto: fix build with pkg-config 2020-11-15 15:29:24 +01:00
l2fwd-event examples: restore trace point 2020-11-15 15:35:11 +01:00
l2fwd-jobstats examples: restore trace point 2020-11-15 15:35:11 +01:00
l2fwd-keepalive examples: restore trace point 2020-11-15 15:35:11 +01:00
l3fwd eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
l3fwd-acl examples: restore trace point 2020-11-15 15:35:11 +01:00
l3fwd-graph examples/l3fwd-graph: fix pkg-config usage 2020-11-15 15:29:34 +01:00
l3fwd-power examples/l3fwd-power: check packet types after start 2020-11-22 18:27:08 +01:00
link_status_interrupt examples: restore trace point 2020-11-15 15:35:11 +01:00
multi_process examples/multi_process: add SPDX license tag to makefiles 2020-11-20 17:32:23 +01:00
ntb examples/ntb: fix clean target 2020-11-15 15:30:21 +01:00
packet_ordering examples: restore trace point 2020-11-15 15:35:11 +01:00
performance-thread examples/performance-thread: fix build with pkg-config 2020-11-15 15:31:15 +01:00
pipeline examples: stop processing meson file if build impossible 2020-11-12 19:33:36 +01:00
ptpclient examples: restore trace point 2020-11-15 15:35:11 +01:00
qos_meter eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
qos_sched examples/qos_sched: fix subport configuration 2020-11-20 12:50:41 +01:00
rxtx_callbacks examples/rxtx_callbacks: fix build with pkg-config 2020-11-15 15:34:50 +01:00
server_node_efd examples: restore trace point 2020-11-15 15:35:11 +01:00
service_cores examples: restore trace point 2020-11-15 15:35:11 +01:00
skeleton examples: restore trace point 2020-11-15 15:35:11 +01:00
timer examples: restore trace point 2020-11-15 15:35:11 +01:00
vdpa examples: stop processing meson file if build impossible 2020-11-12 19:33:36 +01:00
vhost examples/vhost: fix ioat dependency 2020-11-13 19:43:26 +01:00
vhost_blk examples/vhost_blk: fix build with pkg-config 2020-11-15 15:33:05 +01:00
vhost_crypto examples/vhost_crypto: add new line character in usage 2020-11-13 19:43:25 +01:00
vm_power_manager examples: restore trace point 2020-11-15 15:35:11 +01:00
vmdq examples: restore trace point 2020-11-15 15:35:11 +01:00
vmdq_dcb examples: restore trace point 2020-11-15 15:35:11 +01:00
meson.build build: fix plugin load on static build 2021-01-05 23:01:36 +01:00