Date: Tue, 09 May 2006 22:59:44 -0700 From: soralx@cydem.org To: jonc@chen.org.nz, freebsd-questions@freebsd.org Subject: Re: linker wiredness? Message-ID: <200605092259.44504.soralx@cydem.org> In-Reply-To: <20060509185927.GB5327@osiris.chen.org.nz> References: <200605090416.24346.soralx@cydem.org> <200605090441.57320.soralx@cydem.org> <20060509185927.GB5327@osiris.chen.org.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605092259.44504.soralx>