From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] mk: use extra cflags when linking libs with a compiler Date: Mon, 31 Jul 2017 23:56:38 +0200 Message-ID: <1979345.qol78jjUDl@xps> References: <1500995026-20707-1-git-send-email-gage.eads@intel.com> <1501537791-29754-1-git-send-email-gage.eads@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Gage Eads Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id ED7099B4D for ; Mon, 31 Jul 2017 23:56:39 +0200 (CEST) In-Reply-To: <1501537791-29754-1-git-send-email-gage.eads@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 31/07/2017 23:49, Gage Eads: > When using the compiler to link libraries, include EXTRA_CFLAGS. This is > needed when cross-compiling to pass --sysroot, for example. GCC > cross-compilers built with Yocto don't use the --with-sysroot option, > making it necessary to pass the --sysroot command-line option. > > This is the same solution as in commit e8fbb6d9cfd9 ("mk: use extra cflags > when linking with compiler"), but applied to libs instead of apps. > > Signed-off-by: Gage Eads Applied, thanks