From owner-freebsd-questions@FreeBSD.ORG Fri Jul 7 11:22:37 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 828F416A4E1 for ; Fri, 7 Jul 2006 11:22:37 +0000 (UTC) (envelope-from nospam@mgedv.net) Received: from mail.mgedv.net (mail.mgedv.net [81.223.168.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BF1643D46 for ; Fri, 7 Jul 2006 11:22:36 +0000 (GMT) (envelope-from nospam@mgedv.net) Received: from metis (sslint.my.loop [1.1.1.1]) by mail.my.loop (mgedv) with ESMTP id EB3E1457AE for ; Fri, 7 Jul 2006 13:22:34 +0200 (CEST) From: "no@spam@mgedv.net" To: Date: Fri, 7 Jul 2006 13:22:41 +0200 Message-ID: <00aa01c6a1b7$a98af0a0$01010101@avalon.lan> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: Acaht6aLrCnwHVTtQ86wvR9UA9r3ew== Subject: shared library loader configuration 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, 07 Jul 2006 11:22:37 -0000 hi, can someone give me please a SIMPLE and CLEAR answer, what i exactly have to do to achieve the following: i have (for example) installed a new compiled version of libz.a/.so in /usr/local. i want program (during runtime AND during compilation) to compile and run against the NEW and non-system libs. what has to be set/changed, to have this setting as soon as the OS starts? i tried running ldconfig, i was playing around with some ld-so.conf files, everything failed. the compilation does not even find the new libraries, and if i use "ldd" to check what path the lib would use it's always /lib or /usr/lib instead of /usr/local/lib. please don't tell me things about RTFM or weblinks, i just need ~3 simple lines of what the hell to do that i get a persisting setting for compilations and runtimes, which i don't have to e.g. export everytime i want it to work (talking 'bout LD_LIBRARY_PATH or CFLAGS/LDFLAGS). this cannot be a good solution, as soon as i start with a clean environment, there has to be a way to tell the os, MAN load it from there first! many thx in advance for not flaming me & telling me how's it meant to be ;-)