[dpdk-dev] [PATCH] Fix linking errors when CONFIG_RTE_BUILD_SHARED_LIB is enabled

Tetsuya Mukawa mukawa at igel.co.jp
Thu Oct 2 03:43:52 CEST 2014


(2014/10/01 19:50), Neil Horman wrote:
> I'm not sure why thats necesecary.  We add a --start-group/--end-group pair
> halfway through this makefile.  If we just encompassed the entire set of
> libraries in that group, order would be irrelevant.
I haven't known the options. Thanks.
Anyway, I understand I shouldn't change link order, but should check why
'--start-group/--end-group' doesn't work on my environment.
I will describe more in the email for Thomas.

Regards,
Tetsuya

> Neil
>
>> Signed-off-by: Tetsuya Mukawa <mukawa at igel.co.jp>
>> ---
>>  mk/rte.app.mk | 16 ++++++++--------
>>  1 file changed, 8 insertions(+), 8 deletions(-)
>>
>> diff --git a/mk/rte.app.mk b/mk/rte.app.mk
>> index 34dff2a..172ba4d 100644
>> --- a/mk/rte.app.mk
>> +++ b/mk/rte.app.mk
>> @@ -121,10 +121,6 @@ endif
>>  
>>  LDLIBS += --start-group
>>  
>> -ifeq ($(CONFIG_RTE_LIBRTE_KVARGS),y)
>> -LDLIBS += -lrte_kvargs
>> -endif
>> -
>>  ifeq ($(CONFIG_RTE_LIBRTE_MBUF),y)
>>  LDLIBS += -lrte_mbuf
>>  endif
>> @@ -137,6 +133,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_ETHER),y)
>>  LDLIBS += -lethdev
>>  endif
>>  
>> +ifeq ($(CONFIG_RTE_LIBRTE_EAL),y)
>> +LDLIBS += -lrte_eal
>> +endif
>> +
>>  ifeq ($(CONFIG_RTE_LIBRTE_MALLOC),y)
>>  LDLIBS += -lrte_malloc
>>  endif
>> @@ -158,10 +158,6 @@ ifeq ($(CONFIG_RTE_LIBGLOSS),y)
>>  LDLIBS += -lgloss
>>  endif
>>  
>> -ifeq ($(CONFIG_RTE_LIBRTE_EAL),y)
>> -LDLIBS += -lrte_eal
>> -endif
>> -
>>  ifeq ($(CONFIG_RTE_LIBRTE_CMDLINE),y)
>>  LDLIBS += -lrte_cmdline
>>  endif
>> @@ -174,6 +170,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_PMD_BOND),y)
>>  LDLIBS += -lrte_pmd_bond
>>  endif
>>  
>> +ifeq ($(CONFIG_RTE_LIBRTE_KVARGS),y)
>> +LDLIBS += -lrte_kvargs
>> +endif
>> +
>>  ifeq ($(CONFIG_RTE_LIBRTE_PMD_XENVIRT),y)
>>  LDLIBS += -lrte_pmd_xenvirt
>>  LDLIBS += -lxenstore
>> -- 
>> 1.9.1
>>
>>




More information about the dev mailing list