Subject: Re: Problems with 2006Q3
To: None <pkgsrc-users@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: pkgsrc-users
Date: 11/03/2006 15:09:52
On Fri, Nov 03, 2006 at 02:37:36PM +0100, Hrvoje Habjani? wrote:
> On Friday 03 November 2006 10:33, Joerg Sonnenberger wrote:
> > On Fri, Nov 03, 2006 at 10:09:50AM +0100, Hrvoje Habjani? wrote:
> > > Then again, Joerg solution sounds good ... Maybe there can be
> > > configurable option, which all OSes can use, something like
> > > "disable-all-std-libs", which will make links only for libc and libm in
> > > pkgsrc lib directory. If there is need for some other system libs out of
> > > pkgsrc, it's easy to make extra link or two ...
> >
> > How is shared library searching done? Independent of -L?
> 
> In case of "configure" script, yes. "configure" script doesn't respect 
> any "-L" flags - it adds sequentially different paths and when compile pass, 
> that one is added to libs string.
> 
> Ld, on the other hand, respect "-L" flag. But, it is no use when configure 
> script adds "-L/usr/lib" .. does it? ;-)

configure calls the wrapper scripts, so if cc/ld always filters out
-L/usr/lib *first* and adds it again at the end, it should be fine.

Joerg