diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-05-04 06:44:23 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-05-04 06:44:23 -0700 |
commit | c8b26dd45545170b717ade1ddcb2fe800524c0f7 (patch) | |
tree | dbda4ee253c158b6f5f3a29ad744b2e238050bbb /hash.h | |
parent | e05dfea596bee5f26475b3715078ff315f22b5c2 (diff) | |
download | txr-c8b26dd45545170b717ade1ddcb2fe800524c0f7.tar.gz txr-c8b26dd45545170b717ade1ddcb2fe800524c0f7.tar.bz2 txr-c8b26dd45545170b717ade1ddcb2fe800524c0f7.zip |
Calculate sysroot even if executable is renamed.
If txr is renamed to something else in the same installation
directory, we can still calculate the sysroot.
* txr.c (substitute_basename): New function.
(sysroot_init): Make one more attempt to calculate the
sysroot by substituting the actual base name of
the program into the compile-time relative path, and
using that path agains the full path name.
Diffstat (limited to 'hash.h')
0 files changed, 0 insertions, 0 deletions