blob: 5e2b793b39f72c67b19be970e9b2580cf78e8f64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Mon, 18 Mar 2019 10:41:08 +0100
Subject: [PATCH] only use paths for shared libaries in get_link_dep_subdirs()
This is used for -rpath / -rpath-link. So paths for anything else make no
sense.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
mesonbuild/build.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 55b162974bcc..1c09219c87b7 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -763,7 +763,8 @@ class BuildTarget(Target):
def get_link_dep_subdirs(self):
result = OrderedSet()
for i in self.link_targets:
- result.add(i.get_subdir())
+ if isinstance(i, SharedLibrary):
+ result.add(i.get_subdir())
result.update(i.get_link_dep_subdirs())
return result
|