From owner-freebsd-chat@FreeBSD.ORG Tue Feb 23 10:57:49 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 CB7BE1065676 for ; Tue, 23 Feb 2010 10:57:49 +0000 (UTC) (envelope-from shurd@sasktel.net) Received: from proton.sasknet.sk.ca (proton.sasknet.sk.ca [142.165.20.178]) by mx1.freebsd.org (Postfix) with ESMTP id 7ADB08FC14 for ; Tue, 23 Feb 2010 10:57:49 +0000 (UTC) Received: from pps.filterd (proton [127.0.0.1]) by proton.sasknet.sk.ca (8.14.3/8.14.3) with SMTP id o1NAsUgm026396 for ; Tue, 23 Feb 2010 04:57:48 -0600 Received: from bgmpomr2.sasknet.sk.ca (bgmpOMR2.sasknet.sk.ca [142.165.72.23]) by proton.sasknet.sk.ca with ESMTP id m4amyeex2-1 for ; Tue, 23 Feb 2010 04:57:48 -0600 Received: from ace.hurd.local (outgoing.bbsdev.net [76.202.204.46]) by bgmpomr2.sasknet.sk.ca (SaskTel eMessaging Service) with ESMTPA id <0KYA00K3BJSB8V00@bgmpomr2.sasknet.sk.ca> for freebsd-chat@freebsd.org; Tue, 23 Feb 2010 04:57:48 -0600 (CST) Date: Tue, 23 Feb 2010 02:57:46 -0800 From: Stephen Hurd In-reply-to: <868wak2sv5.fsf@ds4.des.no> To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= Message-id: <4B83B4AA.3030405@sasktel.net> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: quoted-printable References: <868wak2sv5.fsf@ds4.des.no> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.23) Gecko/20091205 SeaMonkey/1.1.18 Mnenhy/0.7.6.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-02-23_02:2010-02-06, 2010-02-22, 2010-02-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1002230040 Cc: Ronald , "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 10:57:49 -0000 Dag-Erling Sm=C3=B8rgrav wrote: > "Ronald" writes: > =20 >> 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? >> =20 > > 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. > =20 You can also compile in a search path.