Better log message on rpath error.

pull/7618/head
Jussi Pakkanen 4 years ago committed by Nirbheek Chauhan
parent c15a9818c1
commit d4213ee6cb
  1. 3
      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

Loading…
Cancel
Save