From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=Mu95czh/waAkMFgSxpI/pdjCIs5LFEeogzAWiJy8MA4=; b=gyV//Y1STiTjFx/yXXAcMgxSyjt4xVAojvVVGp47HMl3kHzGFr3bp3x3euABTCPgqn mIyeXYUpvumWO5NoDf9QLLaGb4YmGMFB+ricyTlx3BD8GbBo522vVRvLwpWawMIUZW3z JNOg5dvTne250vGv1Ru4itn2HvE1a1Fq/OvYJdBAt97dAo/dknTjXjl84gkpAYMqr3ac diS68dNJ+CB5sqgSjcs/VE8eWmOd6uj3Ol035H/FAuog1pWMtgbeorD89+7PEGv+Nx6M OVjYlJMibNvqOM4Tn+Jh3b1AAVarNE3+d7imxUeJZ9iZaekEcBCJT8QTPerRVpzQ4RTx sOwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=Mu95czh/waAkMFgSxpI/pdjCIs5LFEeogzAWiJy8MA4=; b=bQu2zhpgwzLaCeT4oDzzSLwUcyjXIUJ5ThNCuogoRDk7E4aKmVJKgRFnfKtfbCalrq T6Jkwhljp8BxO7rciaDd87Zy8QExBhPYacID7zhuncJ2/w1mvpAQhrKLTVUj6vZusNhM QlCAk0iQX3TEVT1jSI/tL51u/syBikXeWKZbXNUrc74BpxEDtxnmrOkSGYYjwtqP7VzY Z1RTj0zRA3fR56XO3oWZgEkcw/oxC59abNzBhw25yvKjJKwn9aj0Xn3d1Y5EQQFuYGBI B6/Fe2kwtPhPrShvFcyEHRXqQSalU8nOmc6ptBr0U7ftHl+lskOoxP/rb+tpYcF56iC2 MuNg== X-Gm-Message-State: ALyK8tLu323fnBME778YlHJu3022D/Secc33Q4BZzw9Pb/2hRhng0++KnqK85/Yzb99zKss+ X-Received: by 10.28.0.142 with SMTP id 136mr3321317wma.22.1465570458997; Fri, 10 Jun 2016 07:54:18 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id f1sm13383520wmf.22.2016.06.10.07.54.18 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Jun 2016 07:54:18 -0700 (PDT) From: Thomas Monjalon To: Ferruh Yigit Cc: dev@dpdk.org Date: Fri, 10 Jun 2016 16:54:17 +0200 Message-ID: <1879858.o2cGYPDP2l@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <575AD396.2020301@intel.com> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2 2/6] mk: fix driver dependencies order for static application 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, 10 Jun 2016 14:54:19 -0000 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.