Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 1995 17:07:10 -0700
From:      Nate Williams <nate@rocky.sri.MT.net>
To:        Archie Cobbs <archie@tribe.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ld default path
Message-ID:  <199511110007.RAA03383@rocky.sri.MT.net>
In-Reply-To: <199511102312.PAA02873@bubba.tribe.com>
References:  <199511102312.PAA02873@bubba.tribe.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> The default search path for "ld" in 2.1-951104-SNAP does not include
> /usr/local/lib... should this perhaps be added?

Why, when you reboot any libraries there get added in /etc/rc?

# Make shared lib searching a little faster.  Leave /usr/lib first if you
# add your own entries or you may come to grief.
if [ -x /sbin/ldconfig ]; then
        _LDC=/usr/lib
        if [ -d /usr/X11R6/lib ]; then _LDC="${_LDC} /usr/X11R6/lib" ; fi
        if [ -d /usr/X386/lib ]; then _LDC="${_LDC} /usr/X386/lib" ; fi
        if [ -d /usr/local/lib ]; then _LDC="${_LDC} /usr/local/lib" ; fi
        echo 'setting ldconfig path:' ${_LDC}
        ldconfig ${_LDC}

Notice that /usr/local/lib is added via ldconfig.


Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511110007.RAA03383>