From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Gonzalez Monroy, Sergio" Subject: Re: Unsupported --no-as-needed flag Date: Fri, 12 Jun 2015 12:22:37 +0100 Message-ID: <557AC0FD.9010504@intel.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org To: Tom Barbette Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6FBCEB3D6 for ; Fri, 12 Jun 2015 13:22:40 +0200 (CEST) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "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, neithe= r > g++ 4.8 or 4.9 know this flag and leads to the error : > > g++: error: unrecognized command line option =E2=80=98--no-as-needed=E2= =80=99 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=20 this case it would be: -Wl,--no-as-needed DPDK build framework does the prefixing automatically when it links=20 using GCC instead of directly using LD. Sergio > Maybe this comes from a bad inclusion of the dpdk *mk files from my par= t ( > https://github.com/MappaM/click/blob/master/userlevel/dpdk.mk )? But > removing the line "--no-as-needed" mk/exec-env/linuxapp/rte.vars.mk sol= ve > my problem. > > Thanks for the help, > > > *Tom Barbette* > University of Liege