[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool searches '.' by default (was: unexpected emergence of --whol

From: Matěj Týč
Subject: Re: libtool searches '.' by default (was: unexpected emergence of --whole-archive)
Date: Fri, 20 Mar 2009 20:11:21 +0100

> > It seems that the current build directory is implicitly passed as an
> > -L. flag to the libtool-supervised linker
> No.  Well, first off, until this message of yours, I didn't know that
> /home/bubla/projects/devil_modular/lib/ was the current build directory.
> Hmm.  This line in ltmain.m4sh:func_mode_link is suspicious:
>     lib_search_path=`pwd`
You are right. Doing as you have suggested eliminates the trouble.
The trouble can be actually quite frustrating if you use a convenience
library that has the same name as a system library you would like to
link to. The first build is somehow OK, but rebuilds fail.

> It was added sometime during the ild-branch; details seem to be lost in
> the git history, so I can't tell whether it was added to fix some bug or
> so (but I'd have some qualms to remove it without further investigation).
> Does replacing it with lib_search_path="" fix the issue for you?
Yes, sir!

Thank you,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]