This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
How to handle the empty DT_RPATH/DT_RUNPATH?
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: How to handle the empty DT_RPATH/DT_RUNPATH?
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Mon, 8 Jan 2001 15:24:05 -0800
The ld.so treats the empty DT_RPATH/DT_RUNPATH like
# gcc -Wl,-rpath,"" t.c
# LD_DEBUG=libs ./a.out
22077: find library=libc.so.6; searching
22077: search path=i686/mmx:i686:mmx: (RPATH from file ./a.out)
22077: trying file=i686/mmx/libc.so.6
22077: trying file=i686/libc.so.6
22077: trying file=mmx/libc.so.6
22077: trying file=libc.so.6
22077: search cache=/etc/ld.so.cache
22077: trying file=/lib/libc.so.6
I am not sure if treating the empty DT_RPATH/DT_RUNPATH as "." is
ok. On the other hand, "xxx:" is treated the same as "xxx:.".
--
H.J. Lu (hjl@valinux.com)