[dpdk-dev] [PATCH] fix bug can not build example application for missing link library
Bruce Richardson
bruce.richardson at intel.com
Wed Dec 17 11:47:49 CET 2014
On Wed, Dec 17, 2014 at 05:20:44PM +0800, Marvin Liu wrote:
> From: Yong Liu <yong.liu at intel.com>
>
> main.o: In function `rte_pktmbuf_free':
> main.c:(.text+0x9c): undefined reference to `per_lcore__lcore_id'
>
> Signed-off-by: Marvin liu <yong.liu at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
> ---
> mk/rte.app.mk | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/mk/rte.app.mk b/mk/rte.app.mk
> index 5fc3118..b51d814 100644
> --- a/mk/rte.app.mk
> +++ b/mk/rte.app.mk
> @@ -61,7 +61,7 @@ ifeq ($(NO_AUTOLIBS),)
>
> LDLIBS += --whole-archive
>
> -ifeq ($(RTE_BUILD_COMBINE_LIBS),n)
> +ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),n)
>
> ifeq ($(CONFIG_RTE_LIBRTE_DISTRIBUTOR),y)
> LDLIBS += -lrte_distributor
> @@ -129,7 +129,7 @@ endif
>
> LDLIBS += --start-group
>
> -ifeq ($(RTE_BUILD_COMBINE_LIBS),n)
> +ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),n)
>
> ifeq ($(CONFIG_RTE_LIBRTE_KVARGS),y)
> LDLIBS += -lrte_kvargs
> @@ -251,7 +251,7 @@ build: _postbuild
>
> exe2cmd = $(strip $(call dotfile,$(patsubst %,%.cmd,$(1))))
>
> -ifeq ($(RTE_BUILD_COMBINE_LIBS),y)
> +ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),y)
> LDLIBS += -l$(RTE_LIBNAME)
> endif
>
> --
> 1.9.3
>
More information about the dev
mailing list