Where to put private lib files?

Dag-Erling Smørgrav des at des.no
Tue Feb 23 11:56:30 UTC 2010


Stephen Hurd <shurd at sasktel.net> writes:
> Dag-Erling Smørgrav <des at des.no> writes:
> > The canonical location for ports is ${LIBDIR}/${PORTNAME}, but
> > remember that unless these are run-time loadable modules, this
> > directory must be in the library search path when you run the app.
> > This means that you either have to ldconfig the directory using an
> > rc_subr script (which defeats the purpose of having a private
> > library directory) or install a wrapper that sets LD_LIBRARY_PATH
> > before execing the real binary.
> You can also compile in a search path.

Not PREFIX-safe, hence not allowed in ports unless there is no other
solution.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-chat mailing list