Re: [dpdk-dev] [PATCH v2 2/4] buildtools: get static mlx dependencies for meson

2020-01-29 Thread Thomas Monjalon
29/01/2020 18:50, Bruce Richardson: > On Wed, Jan 29, 2020 at 06:48:14PM +0100, Thomas Monjalon wrote: > > 29/01/2020 16:37, Bruce Richardson: > > > Error message I got is below. This is on Ubuntu 19.10 with gcc 9.2: > > > > > > LD librte_pmd_mlx5.so.20.0.1 > > > /usr/bin/ld: /lib/x86_64-linux-g

Re: [dpdk-dev] [PATCH v2 2/4] buildtools: get static mlx dependencies for meson

2020-01-29 Thread Bruce Richardson
On Wed, Jan 29, 2020 at 06:48:14PM +0100, Thomas Monjalon wrote: > 29/01/2020 16:37, Bruce Richardson: > > Error message I got is below. This is on Ubuntu 19.10 with gcc 9.2: > > > > LD librte_pmd_mlx5.so.20.0.1 > > /usr/bin/ld: /lib/x86_64-linux-gnu/libmlx5.a(mlx5.c.o): relocation > > R_X86_64

Re: [dpdk-dev] [PATCH v2 2/4] buildtools: get static mlx dependencies for meson

2020-01-29 Thread Thomas Monjalon
29/01/2020 16:37, Bruce Richardson: > Error message I got is below. This is on Ubuntu 19.10 with gcc 9.2: > > LD librte_pmd_mlx5.so.20.0.1 > /usr/bin/ld: /lib/x86_64-linux-gnu/libmlx5.a(mlx5.c.o): relocation > R_X86_64_PC32 against symbol `stderr@@GL I think -fPIC is missing. Which version of

Re: [dpdk-dev] [PATCH v2 2/4] buildtools: get static mlx dependencies for meson

2020-01-29 Thread Bruce Richardson
On Wed, Jan 29, 2020 at 03:37:51PM +, Bruce Richardson wrote: > On Mon, Jan 27, 2020 at 04:44:00PM +0100, Thomas Monjalon wrote: > > The shell script options-ibverbs-static.sh was used with make > > in forcing static linkage of ibverbs libraries. > > > > When choosing to link with a static dep

Re: [dpdk-dev] [PATCH v2 2/4] buildtools: get static mlx dependencies for meson

2020-01-29 Thread Bruce Richardson
On Mon, Jan 27, 2020 at 04:44:00PM +0100, Thomas Monjalon wrote: > The shell script options-ibverbs-static.sh was used with make > in forcing static linkage of ibverbs libraries. > > When choosing to link with a static dependency in meson, > the generated .pc file will not force such static linkag

[dpdk-dev] [PATCH v2 2/4] buildtools: get static mlx dependencies for meson

2020-01-27 Thread Thomas Monjalon
The shell script options-ibverbs-static.sh was used with make in forcing static linkage of ibverbs libraries. When choosing to link with a static dependency in meson, the generated .pc file will not force such static linkage. The solution will rely on using this script in meson. If linking with l