From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 2/2] mk: fix dependency on toolchain libraries Date: Fri, 15 Jul 2016 17:22:50 +0200 Message-ID: <146866062.UJOTQHiUtj@xps13> References: <1468395728-6968-1-git-send-email-thomas.monjalon@6wind.com> <1468395728-6968-2-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit To: dev@dpdk.org Return-path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id D1C645580 for ; Fri, 15 Jul 2016 17:22:51 +0200 (CEST) Received: by mail-wm0-f54.google.com with SMTP id f126so30294452wma.1 for ; Fri, 15 Jul 2016 08:22:51 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id u9sm1245451wjy.45.2016.07.15.08.22.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jul 2016 08:22:50 -0700 (PDT) In-Reply-To: <1468395728-6968-2-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" 2016-07-13 09:42, Thomas Monjalon: > The -l options specifying libraries to link with are in LDLIBS. > But it can happen to have some libraries in other variables. > In case of a low level dependency specified in some environments > via EXTRA_LDFLAGS, there can be an unresolved issue due to a > wrong linking order. Indeed the libraries must be specified from > the higher level (dependency consumers) to the lower level (dependencies). > > It is fixed by moving LDLIBS before LDFLAGS variables in the link > command line. > > Signed-off-by: Thomas Monjalon > Tested-by: Raslan Darawsheh Series applied