diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-06-11 14:32:39 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-06-11 14:32:39 +0530 |
commit | d38f3deaed52e592d9915e1b7970988ccb28eb7f (patch) | |
tree | 02b7c7d5d3be243476886513ef10af1dc37f8126 /mesonbuild/backend/backends.py | |
parent | 56462e1439d9dc0730fdb3f2acc619d7c8e484bd (diff) | |
download | meson-d38f3deaed52e592d9915e1b7970988ccb28eb7f.zip meson-d38f3deaed52e592d9915e1b7970988ccb28eb7f.tar.gz meson-d38f3deaed52e592d9915e1b7970988ccb28eb7f.tar.bz2 |
gnome: Work around GNU ld bug with -rpath,$ORIGIN
g-ir-scanner doesn't understand -rpath, so we use -L instead which
has the same effect.
Closes https://github.com/mesonbuild/meson/issues/1911
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 3044ce6..5a6b2f4 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 |