From owner-freebsd-current Sat Jul 12 20:41:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id UAA03358 for current-outgoing; Sat, 12 Jul 1997 20:41:15 -0700 (PDT) Received: from kitsune.swcp.com (swcp.com [198.59.115.2]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA03353 for ; Sat, 12 Jul 1997 20:41:13 -0700 (PDT) Received: from lundin.abq.nm.us. (lundin.abq.nm.us [198.59.115.228]) by kitsune.swcp.com (8.8.5/1.2.3) with ESMTP id VAA04679; Sat, 12 Jul 1997 21:41:04 -0600 (MDT) Received: (from aflundi@localhost) by lundin.abq.nm.us. (8.8.5/8.8.5) id VAA04548; Sat, 12 Jul 1997 21:40:21 -0600 (MDT) Date: Sat, 12 Jul 1997 21:40:21 -0600 (MDT) From: Alan Lundin Message-Id: <199707130340.VAA04548@lundin.abq.nm.us.> In-Reply-To: "Richard Wackerbarth" "Re: Heads up and and a call for a show of hands." (Jul 11, 11:43am) X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: "Richard Wackerbarth" , "Jordan K. Hubbard" Subject: Re: Heads up and and a call for a show of hands. Cc: current@FreeBSD.ORG Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Jul 11, 11:43am, "Richard Wackerbarth" wrote: > Subject: Re: Heads up and and a call for a show of hands. > > On Fri, Jul 11, 1997 10:16 AM, Jordan K. Hubbard > wrote: > > > Should /etc/ld.so.conf be an _override_ or an _add on_ to the "detected" > ldconfig path list? > [arguments omitted] > > Why not get both effects. Have two config files, for example, > /etc/ld.so.conf and /usr/local/etc/ld.so.conf. > [ ... ] Why not just source ld.so.conf if it exists then you can have either behavior depending on what is in ld.so.conf: /etc/rc [...] _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} if [ -f /etc/ld.so.conf ]; then . /etc/ld.so.conf fi ldconfig ${_LDC} [...] and ld.so.conf can contain something like ${_LDC}="${_LDC} /my/new/lib/dir" for append behavior or ${_LDC}="/usr/X11R6/lib /my/new/lib/dir /usr/local/lib" for override behavior. --alan