On Fri, 18 Apr 2008 20:24:09 -0400
"Aryeh M. Friedman" <[EMAIL PROTECTED]> 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/
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to