diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-06-11 14:54:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-11 14:54:10 +0300 |
commit | f792641b34a83d61a421f0d76a8c72a956bdb073 (patch) | |
tree | ad1a16ae7b6d9b8a0691f7a8d5e821b1eb76598d /mesonbuild/backend/backends.py | |
parent | b8f02047bec9fd2d1a36db82df5fed14ef386cd6 (diff) | |
parent | 1e42241ef3c9f4d7be70b7c44703cf8856a85ddd (diff) | |
download | meson-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.py | 9 |
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 |