Problem with '-L' switch.

2006-08-16 Thread Vaclav Havlik
Hello. Can you advise me on this, please? I build a library with libtool, say libbig.la, from C++ sources, on IA32. This libbig.la wants to link to libsmall.la as '-lsmall' . But, during creating libbig.la, g++ has '-L/usr/lib' before my (user's) paths, which is undesitable in my situation. This

Re: Problem with '-L' switch.

2006-08-17 Thread Vaclav Havlik
Hello Ralf. I removed the trailing slashes from all occurences of sys_lib_search_path_spec, but it didn't help. Then I removed whole '/usr/lib' from all occurences of sys_lib_search_path_spec and it didn't help either. I have a vague idea that the problem might be that there is a variable conta

Re: Problem with '-L' switch.

2006-08-21 Thread Vaclav Havlik
Hello Ralf. I works! I mean 1. correcting '/usr/lib/' --> '/usr/lib' in sys_lib_search_path_spec and 2. the patch. (I copied it by hand, I probably made a mistake when trying to use patch utility). I made these corrections in the local 'libtool' script. So thank you very much. I just have anot

Re: Problem with '-L' switch.

2006-08-21 Thread Vaclav Havlik
Hello Ralf. Thanks for the advice with libtool.m4. I have done a hack to it, which I am attaching. It is probably inconsistent with the rest of the file, but for now it works. There are several more places with sys_lib_search_path_spec, I did not touch them. It strips the trailing slashes off t