Date: Tue, 23 Feb 2010 10:39:42 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: "Ronald" <followait@163.com> Cc: "Freebsd-Chat@Freebsd.Org" <freebsd-chat@freebsd.org> Subject: Re: Where to put private lib files? Message-ID: <868wak2sv5.fsf@ds4.des.no> In-Reply-To: <DD958BBC52D94F79855244E6890704DB@jqslaptop> (Ronald's message of "Tue, 23 Feb 2010 10:40:05 %2B0800") References: <DD958BBC52D94F79855244E6890704DB@jqslaptop>
next in thread | previous in thread | raw e-mail | index | archive | help
"Ronald" <followait@163.com> writes:
> I think the global lib directories is not so good, because it should
> be for public libs.
>
> The libs private to one application, where to put them?
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.
DES
--
Dag-Erling Smørgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?868wak2sv5.fsf>
