浏览代码

libgtk3: ensure host version of pkg-config is used for native compilation

This already was in Eric's submission, but I removed it when committing
while cleaning up.  The package infrastructure already passes the correct
pkg-config to use for cross compilation, but NOT for building native tools,
so we ended up using the target variant and got wrong libraries/headers.

Fixes:

http://autobuild.buildroot.net/results/e0c/e0c2623e2d400ce66963eae23f136c0158556b36/
http://autobuild.buildroot.net/results/5bf/5bf66b8d16a3ddded24827bf278ad24b55ded6e7/
http://autobuild.buildroot.net/results/75f/75f93cea8ab59f052ddefa51c0bfc14c3df47a60/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Peter Korsgaard 10 年之前
父节点
当前提交
307df2883e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      package/libgtk3/libgtk3.mk

+ 2 - 1
package/libgtk3/libgtk3.mk

@@ -15,7 +15,8 @@ LIBGTK3_AUTORECONF = YES
 
 LIBGTK3_CONF_ENV = \
 	ac_cv_path_GTK_UPDATE_ICON_CACHE=$(HOST_DIR)/usr/bin/gtk-update-icon-cache \
-	ac_cv_path_GDK_PIXBUF_CSOURCE=$(HOST_DIR)/usr/bin/gdk-pixbuf-csource
+	ac_cv_path_GDK_PIXBUF_CSOURCE=$(HOST_DIR)/usr/bin/gdk-pixbuf-csource \
+	PKG_CONFIG_FOR_BUILD=$(HOST_DIR)/usr/bin/pkgconf
 
 LIBGTK3_CONF_OPTS = --disable-glibtest \
 	--enable-explicit-deps=no \