On 29/04/2020 12:08, Bruce Richardson wrote:
> To ensure all constructors are included in static build, we need to pass
> the --whole-archive flag when linking, which is used with the
> "link_whole" meson option. Since we use link_whole for all libs, we no
> longer need to track the lib as part of the static dependency, just the
> path to the headers for compiling.
> 
> Signed-off-by: Bruce Richardson <bruce.richard...@intel.com>
> ---

Thank you Bruce!

I was just searching for the same.  My problem was that IF Proxy builds 
were crashing on static builds with meson.  It turned out that the 
culprit is that at the end of rte_eth_iterator_init() there is a call:

        iter->cls = rte_class_find_by_name("eth");

which was failing (because constructor registering eth class was not 
being called).

This patch solves this issue.

Tested-by: Andrzej Ostruszka <aostrus...@marvell.com>

With regards
Andrzej Ostruszka

Reply via email to