Hello, ср, 2 янв. 2019 г. в 14:49, Luca Boccassi <bl...@debian.org>: > > On Wed, 2019-01-02 at 01:43 +0300, Dmitry Eremin-Solenikov wrote: > Strange that libtool is messing things up, I've used the same pkgconfig > file in a few different projects that use autoconf/automake and I > haven't seen this issue.
libtool rearranges/squashes linking flags in an attempt to find 'better' linking flags. Unfortunately this fail for DPDK. We have worked around this by squashing all PMDs into a single gcc argument: -Wl,--whole-archive,-lrte_pmd_af_packet,-lrte_pmd_ark,........,-lrte_pmd_vmxnet3_uio,--no-whole-archive -ldpdk Thus libtool won't move PMDs from --whole-archive/--no-whole-archive brackets. > I had a look on github, and it does not seem that odp is currently > using pkg-config, but rather doing some manual check - is there a > branch in a fork or a patch you could point me to so that I can try to > reproduce? No, I have not pushed my code to github yet. The easies way to reproduce is to statically link a sample program with libtool and check that generated ELF contains all PMDs. -- With best wishes Dmitry