From owner-freebsd-questions@FreeBSD.ORG Fri Mar 19 14:38:31 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E35B61065672 for ; Fri, 19 Mar 2010 14:38:31 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 9F3DE8FC23 for ; Fri, 19 Mar 2010 14:38:31 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) for freebsd-questions@freebsd.org with esmtp (envelope-from ) id <1NsdLK-00084e-KC>; Fri, 19 Mar 2010 15:38:30 +0100 Received: from telesto.geoinf.fu-berlin.de ([130.133.86.198]) by inpost2.zedat.fu-berlin.de (Exim 4.69) for freebsd-questions@freebsd.org with esmtpsa (envelope-from ) id <1NsdLK-0005zI-IN>; Fri, 19 Mar 2010 15:38:30 +0100 Message-ID: <4BA38CD4.3020300@zedat.fu-berlin.de> Date: Fri, 19 Mar 2010 14:40:20 +0000 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.8) Gecko/20100317 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: 130.133.86.198 Subject: How to set LD_PATH elegant? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2010 14:38:32 -0000 I'm a little bit new to setting library paths, so sorry for the noise. I install some packages and libraries apart the FreeBSD package/ports system and need to setup the search path for shared libraries the proper way. At this very moment I 'hardcode' this additional search path by setting ldconfig_paths= in /etc/rc.conf, but since this is a 'system related' location I'm looking for a proper and clean method setting this search path via environment variable and/or some /usr/local/etc/rc.conf.add stuff or similar. I appreciate any hint. Regards, Oliver Hartmann