From patchwork Wed Apr 4 12:50:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Neumann X-Patchwork-Id: 150728 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 5B20EB7008 for ; Wed, 4 Apr 2012 22:50:38 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 602B5A035E; Wed, 4 Apr 2012 12:50:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hPWMCfTtiCI2; Wed, 4 Apr 2012 12:50:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C5521A0173; Wed, 4 Apr 2012 12:50:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EEA828F753 for ; Wed, 4 Apr 2012 12:50:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E26DA8FE9C for ; Wed, 4 Apr 2012 12:50:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aE62eTwJKyPB for ; Wed, 4 Apr 2012 12:50:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.zonque.de (svenfoo.org [82.94.215.22]) by whitealder.osuosl.org (Postfix) with ESMTPS id 01F928FAEE for ; Wed, 4 Apr 2012 12:50:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.zonque.de (Postfix) with ESMTP id 481F9C01D5; Wed, 4 Apr 2012 14:50:28 +0200 (CEST) Received: from mail.zonque.de ([127.0.0.1]) by localhost (rambrand.c2342.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jFy05IAlwm5P; Wed, 4 Apr 2012 14:50:28 +0200 (CEST) Received: from sven.BERLIN.TEUFEL.LOCAL (pd907dbf4.dip0.t-ipconnect.de [217.7.219.244]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.zonque.de (Postfix) with ESMTPSA id 91792C01B1; Wed, 4 Apr 2012 14:50:27 +0200 (CEST) From: Sven Neumann To: buildroot@busybox.net Date: Wed, 4 Apr 2012 14:50:19 +0200 Message-Id: <1333543819-27718-1-git-send-email-s.neumann@raumfeld.com> X-Mailer: git-send-email 1.7.9.1 Subject: [Buildroot] [PATCH] package: set PKG_CONFIG_SYSROOT_DIR in HOST_MAKE_ENV X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net A host package that uses AUTORECONF (such as host-libglib2) may end up running './config.status --recheck'. This will call the configure script with the environment variables set in HOST_MAKE_ENV. If PKG_CONFIG_SYSROOT_DIR is missing this will cause the hardcoded sysroot dir take effect leading to wrong paths. See commit 22acade2ec311 which works around this problem by fiddling with the generated .pc file. This commit becomes obsolete with this fix. Signed-off-by: Sven Neumann Cc: Daniel Mack --- package/Makefile.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/package/Makefile.in b/package/Makefile.in index dc8d038..c344c6b 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -222,6 +222,7 @@ HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \ HOST_MAKE_ENV=PATH=$(HOST_PATH) \ LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \ PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \ + PKG_CONFIG_SYSROOT_DIR="/" \ PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig" \ PERLLIB="$(HOST_DIR)/usr/lib/perl"