Date: Fri, 18 Apr 2008 18:47:28 -0600 From: cpghost <cpghost@cordula.ws> To: Adam J Richardson <fatman@crackmonkey.us> Cc: freebsd-questions@freebsd.org Subject: Re: Where to have my .so files install? Message-ID: <20080418184728.0cb51e60@epia-2.farid-hajji.net> In-Reply-To: <48093BA9.1050800@gmail.com> References: <480938D0.8040100@crackmonkey.us> <48093BA9.1050800@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 18 Apr 2008 20:24:09 -0400
"Aryeh M. Friedman" <aryeh.friedman@gmail.com> wrote:
> Adam J Richardson wrote:
> > Hi all.
> >
> > I'm writing a program which uses .so files as plugins. Now I need
> > to decide where on the filesystem to install the plugins. I don't
> > want to clutter the system locations like /lib and /usr/lib. Can
> > anyone suggest a decent install location? Google doesn't help much
> > with this.
> >
> > TiA,
> > Adam J Richardson
>
> /usr/local/lib
To expand a bit: don't put your own stuff in /lib or /usr/lib,
since this is used by FreeBSD's userland itself. On FreeBSD,
third party stuff goes into /usr/local/{lib,bin,etc,...}.
See hier(7).
As to plugins: if you've got many of them, it's better to group
them in a subdirectory of /usr/local/lib:
/usr/local/lib/${YOUR_PROGNAME}/*.so
and dlopen(3) them using this path.
-cpghost
--
Cordula's Web. http://www.cordula.ws/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080418184728.0cb51e60>
