additional info:
the file tclreadline is opened by dlopen, add adding -rpath to cct does
NOT affect the dlopen path:
> LD_DEBUG=all ./cct
38807:
file=/dev/shm/dev1usr/Compiler3.BUILD/lib/JavaKiller/exe/linuxi386/lib/libtclreadline.so
[0]; dynamically loaded by ./libtcl8.3.so [0]
38807:
file=/dev/shm/dev1usr/Compiler3.BUILD/lib/JavaKiller/exe/linuxi386/lib/libtclreadline.so
[0]; generating link map
38807: dynamic: 0xf7e52ec8 base: 0xf7e4e000 size: 0x00005168
38807: entry: 0xf7e4f230 phdr: 0xf7e4e034 phnum: 7
38807:
38807:
38807: file=libncurses.so.6 [0]; needed by
.../lib/libtclreadline.so [0]
38807: find library=libncurses.so.6 [0]; searching
38807: search cache=/etc/ld.so.cache
38807: trying file=/lib/libncurses.so.6
38807:
38807: file=libncurses.so.6 [0]; generating link map
38807: dynamic: 0xf7acaea4 base: 0xf7a9f000 size: 0x0002c3b0
38807: entry: 0xf7aa6300 phdr: 0xf7a9f034 phnum: 7
38807:
38807:
38807: file=libreadline.so.4.0 [0]; needed by
.../lib/libtclreadline.so [0]
38807: find library=libreadline.so.4.0 [0]; searching
38807: search cache=/etc/ld.so.cache
38807: search
path=/lib/tls/i686/sse2:/lib/tls/i686:/lib/tls/sse2:/lib/tls:/lib/i686/sse2:/lib/i686:/lib/sse2:/lib:/usr/lib/tls/i686/sse2:/usr/lib/tls/i686:/usr/lib/tls/sse2:/usr/lib/tls:/usr/lib/i686/sse2:/usr/lib/i686:/usr/lib/sse2:/usr/lib
(system search path)
38807: trying file=/lib/tls/i686/sse2/libreadline.so.4.0
38807: trying file=/lib/tls/i686/libreadline.so.4.0
38807: trying file=/lib/tls/sse2/libreadline.so.4.0
38807: trying file=/lib/tls/libreadline.so.4.0
38807: trying file=/lib/i686/sse2/libreadline.so.4.0
38807: trying file=/lib/i686/libreadline.so.4.0
38807: trying file=/lib/sse2/libreadline.so.4.0
38807: trying file=/lib/libreadline.so.4.0
38807: trying file=/usr/lib/tls/i686/sse2/libreadline.so.4.0
38807: trying file=/usr/lib/tls/i686/libreadline.so.4.0
38807: trying file=/usr/lib/tls/sse2/libreadline.so.4.0
38807: trying file=/usr/lib/tls/libreadline.so.4.0
38807: trying file=/usr/lib/i686/sse2/libreadline.so.4.0
38807: trying file=/usr/lib/i686/libreadline.so.4.0
38807: trying file=/usr/lib/sse2/libreadline.so.4.0
38807: trying file=/usr/lib/libreadline.so.4.0
mfg.