[PATCH dpdk v3 0/2] Fix dynamic link of driver symbols with pkgconf
Robin Jarry
rjarry at redhat.com
Fri Oct 16 17:38:09 CEST 2026
When building against dynamic libraries using pkg-config, linking fails
because symbols exposed by drivers are not found:
/usr/bin/x86_64-linux-gnu-ld.bfd: ....o:(.data.rel.ro+0x148):
undefined reference to `rte_pci_dump'
That symbol is in librte_bus_pci.so which is *not* listed in the libs
section of the pkg-config file.
This series is about fixing this.
v3:
- Added all shared driver libs to pkg-config, regardless if they have
a public API. -Wl,--as-needed prevents overlinking at build time.
- Simplified to a single .pc file now that all libraries are listed in
the correct order.
v2: Added missing update to dpdk_libraries for pkg-config
Robin Jarry (2):
meson: rename static drivers list
meson: add all drivers to dynamic libraries
app/meson.build | 2 +-
buildtools/pkg-config/meson.build | 65 ++++++++++++++++---------------
buildtools/subproject/meson.build | 2 +-
drivers/meson.build | 4 +-
examples/meson.build | 2 +-
meson.build | 3 +-
6 files changed, 42 insertions(+), 36 deletions(-)
--
2.56.0
More information about the dev
mailing list