aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-10-04 23:43:42 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-10-04 23:43:42 +0300
commit62a607c0571ea3e1ef58a5ab4cd834f05fa0fa51 (patch)
treed0cae8b53de250f5d122db19ce1e51cafcc47cdd /environment.py
parent9f05fce831c5987346421687cc584df7c3907db6 (diff)
downloadmeson-62a607c0571ea3e1ef58a5ab4cd834f05fa0fa51.zip
meson-62a607c0571ea3e1ef58a5ab4cd834f05fa0fa51.tar.gz
meson-62a607c0571ea3e1ef58a5ab4cd834f05fa0fa51.tar.bz2
Some more tests passing.
Diffstat (limited to 'environment.py')
-rw-r--r--environment.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/environment.py b/environment.py
index 50c755c..f71d82b 100644
--- a/environment.py
+++ b/environment.py
@@ -594,6 +594,9 @@ class GnuCPPCompiler(CPPCompiler):
def get_pch_suffix(self):
return 'gch'
+ def build_rpath_args(self, build_dir, rpath_paths):
+ return ['-Wl,-rpath,' + ':'.join([os.path.join(build_dir, p) for p in rpath_paths])]
+
class ClangCPPCompiler(CPPCompiler):
std_warn_flags = ['-Wall', '-Winvalid-pch']
std_opt_flags = ['-O2']
@@ -637,7 +640,7 @@ class ArLinker():
def __init__(self, exelist):
self.exelist = exelist
- def build_rpath_arg(self, build_dir, rpath_paths):
+ def build_rpath_args(self, build_dir, rpath_paths):
return []
def get_exelist(self):