[dpdk-dev] [PATCH 1/7] build: always link-whole DPDK static libraries
Andrzej Ostruszka [C]
aostruszka at marvell.com
Wed Apr 29 16:04:31 CEST 2020
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.richardson at 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 <aostruszka at marvell.com>
With regards
Andrzej Ostruszka
More information about the dev
mailing list