[dpdk-dev] [PATCH v2] mk: move libs that don't dependent PMD libs out of whole archive
Thomas Monjalon
thomas.monjalon at 6wind.com
Thu Feb 9 22:48:41 CET 2017
2017-01-31 15:01, Ferruh Yigit:
> During app build with static library, some libraries wrapped with
> --whole-archive compiler flag.
>
> Wrapped libraries are mainly PMD libraries, this is required because PMD
> APIs not called directly but run through callbacks registered via
> constructor functions.
>
> Also some set of libraries, depends to the PMD libraries needs this,
> because of same reason.
>
> All the libraries used by a plugin (any driver) must be in
> --whole-archive to ensure that every symbols will be available for the
> plugin.
>
> But other libraries can be out of this flag, and this saves some bytes
> in final binary.
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
> Acked-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
Applied, thanks
More information about the dev
mailing list