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