aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/dependencies/python.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py
index 56dddd9..a74423c 100644
--- a/mesonbuild/dependencies/python.py
+++ b/mesonbuild/dependencies/python.py
@@ -248,9 +248,15 @@ class _PythonDependencyBase(_Base):
lib = Path(self.variables.get('base_prefix')) / libpath
elif self.platform.startswith('mingw'):
if self.static:
- libname = self.variables.get('LIBRARY')
+ if limited_api:
+ libname = self.variables.get('ABI3DLLLIBRARY')
+ else:
+ libname = self.variables.get('LIBRARY')
else:
- libname = self.variables.get('LDLIBRARY')
+ if limited_api:
+ libname = self.variables.get('ABI3LDLIBRARY')
+ else:
+ libname = self.variables.get('LDLIBRARY')
lib = Path(self.variables.get('LIBDIR')) / libname
else:
raise mesonlib.MesonBugException(