From owner-freebsd-questions Fri Feb 28 21:35:52 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA11615 for questions-outgoing; Fri, 28 Feb 1997 21:35:52 -0800 (PST) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA11610 for ; Fri, 28 Feb 1997 21:35:48 -0800 (PST) Received: from time.cdrom.com (jkh@localhost [127.0.0.1]) by time.cdrom.com (8.8.5/8.6.9) with ESMTP id VAA01516; Fri, 28 Feb 1997 21:34:57 -0800 (PST) To: Doug White cc: oliver W , questions@freebsd.org Subject: Re: emacs? In-reply-to: Your message of "Fri, 28 Feb 1997 17:25:57 PST." Date: Fri, 28 Feb 1997 21:34:56 -0800 Message-ID: <1513.857194496@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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