aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend
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
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')
-rw-r--r--mesonbuild/backend/backends.py9
-rw-r--r--mesonbuild/backend/ninjabackend.py9
2 files changed, 9 insertions, 9 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
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 40a05bf..8a2ee9a 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -2334,15 +2334,6 @@ rule FORTRAN_DEP_HACK
elem.add_item('LINK_ARGS', commands)
return elem
- 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 get_dependency_filename(self, t):
if isinstance(t, build.SharedLibrary):
return os.path.join(self.get_target_private_dir(t), self.get_target_filename(t) + '.symbols')