From owner-freebsd-chat@FreeBSD.ORG Tue Feb 23 09:39:44 2010 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D5481065672 for ; Tue, 23 Feb 2010 09:39:44 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 31DEE8FC14 for ; Tue, 23 Feb 2010 09:39:44 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 5C2D21FFC22; Tue, 23 Feb 2010 09:39:43 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 1BC05844EB; Tue, 23 Feb 2010 10:39:43 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Ronald" References: Date: Tue, 23 Feb 2010 10:39:42 +0100 In-Reply-To: (Ronald's message of "Tue, 23 Feb 2010 10:40:05 +0800") Message-ID: <868wak2sv5.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "Freebsd-Chat@Freebsd.Org" Subject: Re: Where to put private lib files? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 09:39:44 -0000 "Ronald" 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 --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no