Fix dynamic link of driver symbols with pkgconf
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 0 repliesNew
- v22 patches 4 repliesSuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | meson: rename static drivers listapp/ buildtools/ buildtools/ +3 more | +6 | 0 replies | |
| 2/2 | meson: add all drivers to dynamic librariesbuildtools/ drivers/ meson.build | +36 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Bruce Richardson |
|---|---|
| 1/2 | A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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