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_PC32 against symbol `stderr@@GL > > I think -fPIC is missing. > Which version of rdma-core is it? > As documented, you may have to build the static libraries yourself: > http://doc.dpdk.org/guides/nics/mlx5.html#installation > CFLAGS=-fPIC cmake -DIN_PLACE=1 -DENABLE_STATIC=1 -GNinja .. && ninja > Yes, that appears to be necessary. :-(
What is the big advantage of doing this over default linking using standard packages, especially since for end apps the pkg-config file is taking care of providing all the correct linker args? /Bruce