relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
authorBruno Haible <bruno@clisp.org>
Mon, 3 Oct 2011 11:15:34 +0000 (13:15 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 3 Oct 2011 11:15:34 +0000 (13:15 +0200)
commit33043a538ac757a6d24663b13e7108c8e82e56f2
treeec51267838a771395c0a0f6af80f0acbb0d364e5
parent3cd9026d02cf4fb12b7de2b8739960a909e2827b
relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.

* lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
(compute_curr_prefix, shared_library_fullname,
find_shared_library_fullname, get_shared_library_fullname, relocate):
Use it together with PIC && INSTALLDIR.
Reported by <jojelino@gmail.com>
via Charles Wilson <cygwin@cwilson.fastmail.fm>.
ChangeLog
lib/relocatable.c