DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Unsupported --no-as-needed flag
@ 2015-06-12 10:55 Tom Barbette
  2015-06-12 11:22 ` Gonzalez Monroy, Sergio
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Barbette @ 2015-06-12 10:55 UTC (permalink / raw)
  To: dev

Hi list,

Patch http://dpdk.org/dev/patchwork/patch/1056/ introduced the
--no-as-needed flag, however on debian, and another ubuntu host, neither
g++ 4.8 or 4.9 know this flag and leads to the error :

g++: error: unrecognized command line option ‘--no-as-needed’

Maybe this comes from a bad inclusion of the dpdk *mk files from my part (
https://github.com/MappaM/click/blob/master/userlevel/dpdk.mk )? But
removing the line "--no-as-needed" mk/exec-env/linuxapp/rte.vars.mk solve
my problem.

Thanks for the help,


*Tom Barbette*
University of Liege

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] Unsupported --no-as-needed flag
  2015-06-12 10:55 [dpdk-dev] Unsupported --no-as-needed flag Tom Barbette
@ 2015-06-12 11:22 ` Gonzalez Monroy, Sergio
  2015-06-12 13:06   ` Tom Barbette
  0 siblings, 1 reply; 3+ messages in thread
From: Gonzalez Monroy, Sergio @ 2015-06-12 11:22 UTC (permalink / raw)
  To: Tom Barbette; +Cc: dev

On 12/06/2015 11:55, Tom Barbette wrote:
> Hi list,
>
> Patch http://dpdk.org/dev/patchwork/patch/1056/ introduced the
> --no-as-needed flag, however on debian, and another ubuntu host, neither
> g++ 4.8 or 4.9 know this flag and leads to the error :
>
> g++: error: unrecognized command line option ‘--no-as-needed’
That is a correct error as it is not GCC but an LD flag.
To pass those flags through GCC you have to prefix them with -Wl, so for 
this case it would be:
    -Wl,--no-as-needed

DPDK build framework does the prefixing automatically when it links 
using GCC instead
of directly using LD.

Sergio
> Maybe this comes from a bad inclusion of the dpdk *mk files from my part (
> https://github.com/MappaM/click/blob/master/userlevel/dpdk.mk )? But
> removing the line "--no-as-needed" mk/exec-env/linuxapp/rte.vars.mk solve
> my problem.
>
> Thanks for the help,
>
>
> *Tom Barbette*
> University of Liege

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] Unsupported --no-as-needed flag
  2015-06-12 11:22 ` Gonzalez Monroy, Sergio
@ 2015-06-12 13:06   ` Tom Barbette
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Barbette @ 2015-06-12 13:06 UTC (permalink / raw)
  To: Gonzalez Monroy, Sergio; +Cc: dev

This is indeed from my integration (don't want all those EAL stuff), I
probably removed too much. it works by adding those two lines in my DPDK
makefile before going back to my normal makefile :

include $(RTE_SDK)/mk/internal/rte.build-pre.mk
override LDFLAGS := $(call linkerprefix,$(LDFLAGS))


Thanks for the help,

*Tom Barbette*

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-12 13:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-12 10:55 [dpdk-dev] Unsupported --no-as-needed flag Tom Barbette
2015-06-12 11:22 ` Gonzalez Monroy, Sergio
2015-06-12 13:06   ` Tom Barbette

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).