diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-15 05:51:45 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-21 19:40:54 +0300 |
commit | e82edc179fe86e68d1f74fe084fd891ef2d12316 (patch) | |
tree | 04e2bdbb992f2292a7668831f01d95128f929634 /mesonbuild/build.py | |
parent | 2269b7f60b2443aa697a5616fcc3692fa3496046 (diff) | |
download | meson-e82edc179fe86e68d1f74fe084fd891ef2d12316.zip meson-e82edc179fe86e68d1f74fe084fd891ef2d12316.tar.gz meson-e82edc179fe86e68d1f74fe084fd891ef2d12316.tar.bz2 |
Check for manual attempts to set rpath and update docs.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index e1e1a33..99e132d 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -670,6 +670,10 @@ class BuildTarget(Target): for i in self.link_args: if not isinstance(i, str): raise InvalidArguments('Link_args arguments must be strings.') + for l in self.link_args: + if '-Wl,-rpath' in l or l.startswith('-rpath'): + mlog.warning('''Please do not define rpath with a linker argument, use install_rpath or build_rpath properties instead. +This will become a hard error in a future Meson release.''') self.process_link_depends(kwargs.get('link_depends', []), environment) # Target-specific include dirs must be added BEFORE include dirs from # internal deps (added inside self.add_deps()) to override them. |