From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 12 Jun 2015 04:22:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,601,1427785200"; d="scan'208";a="586619999" Received: from smonroyx-mobl.ger.corp.intel.com (HELO [10.237.220.108]) ([10.237.220.108]) by orsmga003.jf.intel.com with ESMTP; 12 Jun 2015 04:22:38 -0700 Message-ID: <557AC0FD.9010504@intel.com> Date: Fri, 12 Jun 2015 12:22:37 +0100 From: "Gonzalez Monroy, Sergio" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Tom Barbette References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Unsupported --no-as-needed flag X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2015 11:22:41 -0000 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