Date: Thu, 05 Jun 1997 21:53:09 -0700 From: "Jordan K. Hubbard" <jkh@time.cdrom.com> To: hackers@freebsd.org Subject: Any objection to the following? Message-ID: <18643.865572789@time.cdrom.com>
next in thread | raw e-mail | index | archive | help
This brings in the /etc/ld.so.conf behavior from NetBSD/Linux and makes it possible to add directories to the ldconfig list without editing /etc/rc.conf. Since this is also a zero-impact change (if you have no ld.so.conf, and there would be no default, it does nothing) it would also go into 2.2. Jordan Index: rc =================================================================== RCS file: /home/ncvs/src/etc/rc,v retrieving revision 1.104.2.16 diff -u -r1.104.2.16 rc --- rc 1997/05/19 08:02:37 1.104.2.16 +++ rc 1997/06/06 01:31:11 @@ -205,14 +205,19 @@ accton /var/account/acct fi -# Make shared lib searching a little faster. Leave /usr/lib first if you -# add your own entries or you may come to grief. -_LDC=/usr/lib -if [ -d /usr/lib/compat ]; then _LDC="${_LDC} /usr/lib/compat" ; fi -if [ -d /usr/X11R6/lib ]; then _LDC="${_LDC} /usr/X11R6/lib" ; fi -if [ -d /usr/local/lib ]; then _LDC="${_LDC} /usr/local/lib" ; fi -echo 'setting ldconfig path:' ${_LDC} -ldconfig ${_LDC} +# If we have an ld.so.conf file, let it do the job. +if [ -f /etc/ld.so.conf -a -r /etc/ld.so.conf ]; then + echo 'setting ldconfig path from /etc/ld.so.conf' + ldconfig `cat /etc/ld.so.conf` +else + # Leave /usr/lib first when adding entries or you may come to grief. + _LDC=/usr/lib + if [ -d /usr/lib/compat ]; then _LDC="${_LDC} /usr/lib/compat" ; fi + if [ -d /usr/X11R6/lib ]; then _LDC="${_LDC} /usr/X11R6/lib" ; fi + if [ -d /usr/local/lib ]; then _LDC="${_LDC} /usr/local/lib" ; fi + echo 'setting ldconfig path:' ${_LDC} + ldconfig ${_LDC} +fi # Now start up miscellaneous daemons that don't belong anywhere else #
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18643.865572789>