[dpdk-dev] [PATCH] mk: fix app linking for combined libs
thomas.monjalon at 6wind.com
Fri Nov 28 16:55:44 CET 2014
2014-10-23 16:36, Sergio Gonzalez Monroy:
> Building combined shared libraries results in applications being linked
> against separeted/individual and combined libs altogether.
> Link only against combined lib when the config option is enabled.
> Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy at intel.com>
> --- a/mk/rte.app.mk
> +++ b/mk/rte.app.mk
> @@ -217,6 +217,12 @@ endif
> endif # plugins
> +ifeq ($(RTE_BUILD_COMBINE_LIBS),y)
> +LDLIBS = --whole-archive
You are resetting LDLIBS here.
It's not easy to read and probably not desired.
I think it would be better to explicitly disable separated libs
in this case.
> +LDLIBS += --start-group
> +LDLIBS += -l$(RTE_LIBNAME)
More information about the dev