Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 1997 21:34:56 -0800
From:      "Jordan K. Hubbard" <jkh@time.cdrom.com>
To:        Doug White <dwhite@resnet.uoregon.edu>
Cc:        oliver W <oliver@stone.csc.ncsu.edu>, questions@freebsd.org
Subject:   Re: emacs? 
Message-ID:  <1513.857194496@time.cdrom.com>
In-Reply-To: Your message of "Fri, 28 Feb 1997 17:25:57 PST." <Pine.BSI.3.94.970228172444.12420A-100000@localhost> 

next in thread | previous in thread | raw e-mail | index | archive | help
> I like that.
> 
> Is there any way to add a rc.d script to the Xemacs port/package so this
> is automated?  This question is a FAQ in here.

Look in /etc/rc - you'll see the following:

# 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/lib/compat ]; then _LDC="${_LDC} /usr/lib/compat" ; fi
        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}
fi

You can either add your directory to this list, or you can
create a little /usr/local/etc/rc.d/foo.sh file which does
nothing more than:

#!/bin/sh
ldconfig -m /compat/lib

[This is what the Modula3 port does, in fact].

					Jordan



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