Add a ldconfig_paths variable that specifies the shared library paths

to be given to ldconfig(8).

PR:		5178
Submitted by:	Evan Champion <evanc@synapse.net>
This commit is contained in:
Steve Price 1997-12-27 19:46:54 +00:00
parent 039016310d
commit e8f5e3e6b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32028
2 changed files with 8 additions and 5 deletions

10
etc/rc
View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: rc,v 1.140 1997/12/09 07:22:04 danny Exp $
# $Id: rc,v 1.141 1997/12/09 10:06:49 danny Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@ -227,9 +227,11 @@ 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
for i in $ldconfig_paths; do
if test -d $i; then
_LDC="${_LDC} $i"
fi
done
echo 'setting ldconfig path:' ${_LDC}
ldconfig ${_LDC}

View File

@ -6,7 +6,7 @@
#
# All arguments must be in double or single quotes.
#
# $Id: rc.conf,v 1.34 1997/11/16 12:52:17 steve Exp $
# $Id: rc.conf,v 1.35 1997/12/14 12:30:59 jkh Exp $
##############################################################
### Important initial Boot-time options #####################
@ -136,6 +136,7 @@ ibcs2_enable="NO" # Ibcs2 (SCO) emulation loaded at startup (or NO).
linux_enable="NO" # Linux emulation loaded at startup (or NO).
rand_irqs="NO" # Stir the entropy pool (like "5 11" or NO).
clear_tmp_enable="NO" # Clear /tmp at startup.
ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib" # shared library search paths
##############################################################
### Allow local configuration override at the very end here ##