From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2 2/6] mk: fix driver dependencies order for static application Date: Fri, 10 Jun 2016 15:49:58 +0100 Message-ID: <575AD396.2020301@intel.com> References: <1464367686-3475-1-git-send-email-ferruh.yigit@intel.com> <1465564749-1405-1-git-send-email-thomas.monjalon@6wind.com> <1465564749-1405-3-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Thomas Monjalon Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id ECD622BA6 for ; Fri, 10 Jun 2016 16:50:00 +0200 (CEST) In-Reply-To: <1465564749-1405-3-git-send-email-thomas.monjalon@6wind.com> 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 6/10/2016 2:19 PM, Thomas Monjalon wrote: > On a linker command line, the dependencies must be declared after > the libraries using them. > It will avoid some issues when building an application with static > libraries and --as-needed option. > > Signed-off-by: Thomas Monjalon > --- Do we need this which driver used which library detail? I think it is enough to move all external library dependencies to the last in command line, without paying attention who use it, Linker will handle the rest, if that library is not required it won't be linked against.