freebsd-skq/gnu
peter 7523d23ee7 Update to handle new version ld.so.hints and info in executable for
configurable fallback search paths, as well as new crt interface version.

Also:
 - even faster getenv(), get all environment variable settings in a single
   pass.
 - ldd printf-like format specifications
 - minor code cleanups, one vsprintf -> vsnprintf (harmless)

The library search sequence is a little more complete now. Before,
it'd search $LD_LIBRARY_PATH (by opendir/readdir/closedir), then read
the hints file, then read /usr/lib (again by scanning thr directory).  It
would then fail if there was no "found" library.

Now, it does LD_LIBRARY_PATH and the hints file the same, but then uses
a longer fallback path.  The -R path is fetched from the executable if
specified at build time, the ldconfig path is appended, and /usr/lib is
appended to that. Duplicates are suppressed.  This means that simply
placing a new library in /usr/local/lib will work (the same as it did in
/usr/lib) without needing ldconfig -m.  It will find it quicker if the
ldconfig is run though.

Similar changes have been made to the NetBSD ld.so, but ours is rather
different now due to John Polstra's speedups and fixes from a while back.

The ldd printf-like format support came direct from NetBSD.

Reviewed by: nate, jdp
1996-10-01 01:52:03 +00:00
..
gnu2bmake This commit was generated by cvs2svn to compensate for changes in r13122, 1995-12-30 19:02:48 +00:00
include missed these parts of Bruce's changes last time.. 1996-08-30 21:57:39 +00:00
lib Eliminated includes of the "temporary" backwards compatibility header 1996-09-24 08:08:11 +00:00
libexec make install should not install any file in /etc. 1996-08-17 22:27:08 +00:00
usr.bin Update to handle new version ld.so.hints and info in executable for 1996-10-01 01:52:03 +00:00
usr.sbin Toss the GNU yp_mkdb into the attic. 1996-04-28 04:08:22 +00:00
COPYING This commit was manufactured by cvs2svn to create branch 'gnu'. 1993-11-08 17:09:51 +00:00
COPYING.LIB Adding GPL docs, make structure. 1993-06-18 06:05:45 +00:00
Makefile Remove games from the SUBDIR list. Gnu Chess is in ports now. 1995-12-23 17:03:07 +00:00