From f9c1cc9d93e2a614b9d8510ba022865183cfbfc1 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Mon, 19 Dec 2016 01:20:56 -0500 Subject: [PATCH] Fix pkg-config during cross-compile. --- mesonbuild/dependencies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/dependencies.py b/mesonbuild/dependencies.py index 20556e227..aa3927f46 100644 --- a/mesonbuild/dependencies.py +++ b/mesonbuild/dependencies.py @@ -113,11 +113,11 @@ class PkgConfigDependency(Dependency): # When finding dependencies for cross-compiling, we don't care about # the 'native' pkg-config if want_cross: - if 'pkgconfig' not in env.cross_info.config['binaries']: + if 'pkgconfig' not in environment.cross_info.config['binaries']: if self.required: raise DependencyException('Pkg-config binary missing from cross file') else: - pkgbin = environment.cross_info.config['binaries']['pkgconfig'] + PkgConfigDependency.pkgbin = environment.cross_info.config['binaries']['pkgconfig'] # Only search for the native pkg-config the first time and # store the result in the class definition elif PkgConfigDependency.pkgbin is None: