aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/dependencies.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/dependencies.py b/mesonbuild/dependencies.py
index 20556e2..aa3927f 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: