aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index a6bec06..8153ff7 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -394,12 +394,11 @@ class Backend:
return paths
def determine_rpath_dirs(self, target):
- link_deps = target.get_all_link_deps()
- result = OrderedSet()
- for ld in link_deps:
- if ld is target:
- continue
- result.add(self.get_target_dir(ld))
+ if self.environment.coredata.get_builtin_option('layout') == 'mirror':
+ result = target.get_link_dep_subdirs()
+ else:
+ result = OrderedSet()
+ result.add('meson-out')
result.update(self.rpaths_for_bundled_shared_libraries(target))
return list(result)