aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-06-11 14:54:10 +0300
committerGitHub <noreply@github.com>2017-06-11 14:54:10 +0300
commitf792641b34a83d61a421f0d76a8c72a956bdb073 (patch)
treead1a16ae7b6d9b8a0691f7a8d5e821b1eb76598d /mesonbuild/backend/backends.py
parentb8f02047bec9fd2d1a36db82df5fed14ef386cd6 (diff)
parent1e42241ef3c9f4d7be70b7c44703cf8856a85ddd (diff)
downloadmeson-f792641b34a83d61a421f0d76a8c72a956bdb073.zip
meson-f792641b34a83d61a421f0d76a8c72a956bdb073.tar.gz
meson-f792641b34a83d61a421f0d76a8c72a956bdb073.tar.bz2
Merge pull request #1927 from centricular/gir-rpath-link
Work around GNU ld bug with -rpath,$ORIGIN
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index 05d6e03..1dd128b 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -294,6 +294,15 @@ class Backend:
raise MesonException(m.format(target.name))
return l
+ def determine_rpath_dirs(self, target):
+ link_deps = target.get_all_link_deps()
+ result = []
+ for ld in link_deps:
+ prospective = self.get_target_dir(ld)
+ if prospective not in result:
+ result.append(prospective)
+ return result
+
def object_filename_from_source(self, target, source, is_unity):
if isinstance(source, mesonlib.File):
source = source.fname