summaryrefslogtreecommitdiffstats
path: root/rand.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-05-04 06:44:23 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-05-04 06:44:23 -0700
commitc8b26dd45545170b717ade1ddcb2fe800524c0f7 (patch)
treedbda4ee253c158b6f5f3a29ad744b2e238050bbb /rand.c
parente05dfea596bee5f26475b3715078ff315f22b5c2 (diff)
downloadtxr-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 'rand.c')
0 files changed, 0 insertions, 0 deletions