From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoM5j-0000qU-Dx for qemu-devel@nongnu.org; Tue, 02 Aug 2011 17:01:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QoM5h-00075F-Bt for qemu-devel@nongnu.org; Tue, 02 Aug 2011 17:01:31 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:49673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoM5h-00074Z-6W for qemu-devel@nongnu.org; Tue, 02 Aug 2011 17:01:29 -0400 Message-ID: <4E38659C.7080008@mail.berlios.de> Date: Tue, 02 Aug 2011 23:01:16 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1312316473-22591-1-git-send-email-stuart.yoder@freescale.com> In-Reply-To: <1312316473-22591-1-git-send-email-stuart.yoder@freescale.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] remove cross prefix from pkg-config command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stuart yoder Cc: qemu-devel@nongnu.org Am 02.08.2011 22:21, schrieb Stuart yoder: > From: Stuart Yoder > > the host pkg-config tool should be used with the location to > pkg-config *.pc files being specified via the PKG_CONFIG_PATH > > Signed-off-by: Stuart Yoder > --- > > The Freescale cross build environment is multilib which > means there are special library paths for different > cpu types. pkg-config installed along with the > other cross tools does not work...it has no clue how > to find the right libraries. So using cross-prefix > does no good. Only thing I can get to work is > explicitly setting PKG_CONFIG_PATH before running > configure. > > Not sure how other cross build envionments work, but > it seems like the above method should be sufficiently > general. > > configure | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) I run cross builds for arm, mips, powerpc and mingw. All of them use the cross prefix. When running make, I neither want to specify a special PATH nor a PKG_CONFIG_PATH. All I need is something like "make -C bin/arm" (each cross target has its own directory with the binaries). The general idea of your patch is ok, but maybe you can modify it so the cross prefix is used if there is no PKG_CONFIG_PATH set? Regards, Stefan Weil