From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 2/6] mk: fix driver dependencies order for static application Date: Fri, 10 Jun 2016 16:54:17 +0200 Message-ID: <1879858.o2cGYPDP2l@xps13> References: <1464367686-3475-1-git-send-email-ferruh.yigit@intel.com> <1465564749-1405-3-git-send-email-thomas.monjalon@6wind.com> <575AD396.2020301@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Ferruh Yigit Return-path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 485B619F5 for ; Fri, 10 Jun 2016 16:54:19 +0200 (CEST) Received: by mail-wm0-f52.google.com with SMTP id v199so152222992wmv.0 for ; Fri, 10 Jun 2016 07:54:19 -0700 (PDT) In-Reply-To: <575AD396.2020301@intel.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" 2016-06-10 15:49, Ferruh Yigit: > 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. I prefer avoiding garbage and have a justification for dependencies.