aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/modules/python.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index 3b2bf07..9cfbd6f 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -151,8 +151,8 @@ class PythonDependency(ExternalDependency):
largs = self.clib_compiler.find_library(libname, environment, libdirs)
self.is_found = largs is not None
-
- self.link_args = largs
+ if self.is_found:
+ self.link_args = largs
inc_paths = mesonlib.OrderedSet([
self.variables.get('INCLUDEPY'),