29/04/2020 12:08, Bruce Richardson: > When calling pkg-config --static --libs, pkg-config will always output the > regular libs first, and then the extra libs from libraries.private field, > since the assumption is that those are additional dependencies for building > statically that the .a files depend upon. > > However, for DPDK, we only link the driver files for static builds, and > those need to come *before* the regular libraries.
Please could you add the error here? > To get this result, we > need two pkgconfig files for DPDK, one for the shared libs, and a second > for the static libs and drivers, which depends upon the first. I feel we are doing something wrong. We should not have two .pc files. I also know that static linkage is generally badly supported in pkg-config... Please could you insert the output of pkg-config to help understanding? Thanks