diff options
author | glewis <glewis@FreeBSD.org> | 2005-05-12 12:12:33 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2005-05-12 12:12:33 +0800 |
commit | 2f08a064577be7d63a56b236099f299cf334a570 (patch) | |
tree | 7298d4c636c6b6244e4dec6c7995426d9526ea49 /lang/tcl84 | |
parent | 1d110ffa1efc3d94bd930b301dcd1140db6a42e7 (diff) | |
download | freebsd-ports-graphics-2f08a064577be7d63a56b236099f299cf334a570.tar.gz freebsd-ports-graphics-2f08a064577be7d63a56b236099f299cf334a570.tar.zst freebsd-ports-graphics-2f08a064577be7d63a56b236099f299cf334a570.zip |
. Using dladdr(3) to determine the path to the current executable, and
hence the path for the shared libraries doesn't always work on FreeBSD.
It definitely fails on FreeBSD 4.11 and FreeBSD 6-CURRENT under the
tested environments. In fact, the dladdr(3) man page even warns of
these problems. While there is work under way to fix this, it isn't
available yet.
Given that situation, switch to trying /proc/curproc/file, which is
similar to what Linux does, and if that fails, drop back to checking
argv[0] and iterating through $PATH as in jdk 1.4. Both these methods
work correctly in testing.
Reported by: das
Reviewed by: maintainer timeout
Diffstat (limited to 'lang/tcl84')
0 files changed, 0 insertions, 0 deletions