Skip to content

Fix dynamic link of driver symbols with pkgconf

Robin Jarry dpdk-dev 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 4 repliesSuperseded
  3. v12 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- 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.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2meson: rename static drivers listapp/meson.build buildtools/pkg-config/meson.build buildtools/subproject/meson.build +3 more+6 -60 replies
2/2meson: add all drivers to dynamic librariesbuildtools/pkg-config/meson.build drivers/meson.build meson.build+36 -300 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchBruce Richardson
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH dpdk v3 0/2] Fix dynamic link of driver symbols with pkgconf

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(-)
Signature · 1 line
2.56.0