From owner-freebsd-questions@FreeBSD.ORG Wed May 10 05:59:55 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 5376A16A408 for ; Wed, 10 May 2006 05:59:55 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from pd4mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E6F443D49 for ; Wed, 10 May 2006 05:59:54 +0000 (GMT) (envelope-from soralx@cydem.org) Received: from pd5mr6so.prod.shaw.ca (pd5mr6so-qfe3.prod.shaw.ca [10.0.141.182]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IZ100IT4CNL6TE0@l-daemon> for freebsd-questions@freebsd.org; Tue, 09 May 2006 23:59:45 -0600 (MDT) Received: from pn2ml9so.prod.shaw.ca ([10.0.121.7]) by pd5mr6so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IZ100FJKCNLJ110@pd5mr6so.prod.shaw.ca> for freebsd-questions@freebsd.org; Tue, 09 May 2006 23:59:45 -0600 (MDT) Received: from soralx.cydem.org ([24.87.27.3]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IZ1006D9CNKDT60@l-daemon> for freebsd-questions@freebsd.org; Tue, 09 May 2006 23:59:45 -0600 (MDT) Date: Tue, 09 May 2006 22:59:44 -0700 From: soralx@cydem.org In-reply-to: <20060509185927.GB5327@osiris.chen.org.nz> To: jonc@chen.org.nz, freebsd-questions@freebsd.org Message-id: <200605092259.44504.soralx@cydem.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <200605090416.24346.soralx@cydem.org> <200605090441.57320.soralx@cydem.org> <20060509185927.GB5327@osiris.chen.org.nz> User-Agent: KMail/1.9.1 Cc: Subject: Re: linker wiredness? 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: Wed, 10 May 2006 05:59:57 -0000 > > > FreeBSD's linker doesn't add /usr/local/lib to the search path by > > > default, unlike some other operating systems. The "-L/usr/local/lib" > > > flag is therefore required... > > > > but ldconfig already found the library (line 441)!? > > ld(1) doesn't consult ldconfig(8). oh, I was probably confused by the `man ldconfig`: "The ldconfig utility is used to prepare a set of ``hints'' for use by the dynamic linker to facilitate quick lookup of shared libraries available [...]" The 'dynamic linker' doesn't mean 'compiler's linker' here, I suppose. In any case, how do I tell ld(1) where to look without specifying '-L' or modifying Makefie? I tried `export LD_LIBRARY_PATH="/usr/local/lib"` and `echo "/usr/local/lib" > /etc/ld.so.conf`, but nothing changed. Timestamp: 0x44617F2B [SorAlx] ridin' VN1500-B2