diff --git a/dependencies.py b/dependencies.py index dc6279ebe..96683dbd8 100644 --- a/dependencies.py +++ b/dependencies.py @@ -888,11 +888,12 @@ class GLDependency(Dependency): self.cargs = [] self.linkargs = [] try: - pcdep = PkgConfigDependency('gl', kwargs) + pcdep = PkgConfigDependency('gl', environment, kwargs) if pcdep.found(): self.is_found = True self.cargs = pcdep.get_compile_args() self.linkargs = pcdep.get_link_args() + return except Exception: pass if mesonlib.is_osx():