Auto-rpath revisited...
Lee Iverson
leei@ai.sri.com
Fri Feb 20 12:26:00 GMT 1998
OK. I have an implementation of a system for automatically generating
shared lib rpaths in collect2. It carefully walks through
'-L'-specified paths and searches for shared libraries which will
actually resolve the link search. This should deal with the
previously raised objections to automatic techniques which just map -L
to rpath, and definitely solves the problem of needing LD_LIBRARY_PATH
in order to even run a minimal C++ program on systems where
libstdc++.so is not installed in a standard place.
So, I have a sample implementation that I could submit today (modulo
assignment paperwork). At this point we come to policy issues, what
exactly should it do?
Proposals:
1) Do an exhaustive walkthrough of -L/-l pairs, and add to the end of
any user-supplied rpath an entry for any directory which resolves a
shared lib link (this is what the implementation now does).
2) Restrict the auto-rpath generation to only checking against
system-supplied -L directories (i.e. -L$(exec_prefix)/lib).
3) something else...
Suggestions? Discussion?
-------------------------------------------------------------------------------
Lee Iverson SRI International
leei@ai.sri.com 333 Ravenswood Ave., Menlo Park CA 94025
http://www.ai.sri.com/~leei/ (650) 859-3307
More information about the Gcc
mailing list