[git,commit] package: set PKG_CONFIG_SYSROOT_DIR in HOST_MAKE_ENV

Submitted by Peter Korsgaard on April 15, 2012, 9:08 p.m.

Details

Message ID 20120415211018.44BB396AAA@busybox.osuosl.org
State Not Applicable
Headers show

Commit Message

Peter Korsgaard April 15, 2012, 9:08 p.m.
commit: http://git.buildroot.net/buildroot/commit/?id=feba8b1382bfda10bc479f744e4697c868a23dc3
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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 <s.neumann@raumfeld.com>
Cc: Daniel Mack <zonque@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 package/Makefile.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

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"