aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-05-23 19:00:02 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-05-24 14:38:28 +0000
commit1ffbddc31ab342e9f3fcdb40184f76f5799b8c28 (patch)
treebfd8ef7e7f70e1e809df524f0229261a13de9b43 /mesonbuild
parentfecd5806871ee78f81d63934401a1f4c09c8d187 (diff)
downloadmeson-1ffbddc31ab342e9f3fcdb40184f76f5799b8c28.zip
meson-1ffbddc31ab342e9f3fcdb40184f76f5799b8c28.tar.gz
meson-1ffbddc31ab342e9f3fcdb40184f76f5799b8c28.tar.bz2
backends: Also accept dylibs while finding RPATHs
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/backend/backends.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index a7f9ba1..02ce52d 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -344,7 +344,9 @@ class Backend:
if libpath.startswith(('/usr/lib', '/lib')):
# No point in adding system paths.
continue
- if os.path.splitext(libpath)[1] not in ['.dll', '.lib', '.so']:
+ # Windows doesn't support rpaths, but we use this function to
+ # emulate rpaths by setting PATH, so also accept DLLs here
+ if os.path.splitext(libpath)[1] not in ['.dll', '.lib', '.so', '.dylib']:
continue
absdir = os.path.dirname(libpath)
if absdir.startswith(self.environment.get_source_dir()):