> > 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, Matej _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool