diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-08-07 23:24:53 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-08-07 23:25:42 +0300 |
commit | 1f2b9a5e5e0174ac9c7e593c76b32f6ec5894e7f (patch) | |
tree | 2c02c69427232a49b7712599acf21ba311923478 | |
parent | 4a923b699b5e2575b7d0058a306ffb3d031aa970 (diff) | |
download | meson-rpathlogging.tar.gz |
Better log message on rpath error.rpathlogging
-rw-r--r-- | mesonbuild/scripts/depfixer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/scripts/depfixer.py b/mesonbuild/scripts/depfixer.py index a3a3eff05..4176b9a03 100644 --- a/mesonbuild/scripts/depfixer.py +++ b/mesonbuild/scripts/depfixer.py @@ -323,7 +323,8 @@ class Elf(DataSizes): new_rpath = b':'.join(new_rpaths) if len(old_rpath) < len(new_rpath): - sys.exit("New rpath must not be longer than the old one.") + msg = "New rpath must not be longer than the old one.\n Old: {}\n New: {}".format(old_rpath, new_rpath) + sys.exit(msg) # The linker does read-only string deduplication. If there is a # string that shares a suffix with the rpath, they might get # dedupped. This means changing the rpath string might break something |