On 6/9/06, <b class="gmail_sendername">Jorgen Bodde</b> <<a href="mailto:email@example.com">firstname.lastname@example.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Alex,<br><br>Thank you for your reply. I want to statically link as much libs as<br>possible (especially wxGTK2.6.3) .. The reason is that my app needs to<br>distributed. When I have wxGTK2.6.1 installed in /usr/lib it always
<br>takes those instead of my own absolute path.<br><br>I do not really mind if it is portable or not, I just want GCC to take<br>the proper libraries. And I feel limited now because I do have wxGTK<br>2.6.1 installed as RPM (in /usr/lib) because it is needed by some apps,
<br>but I cannot even link against my own built wx-libs (located somewhere<br>else) because GCC always takes the .so versions in /usr/lib. To me that<br>sounds rather limiting.<br></blockquote></div><br>Here is a trick I learned. Just make a directory, for example /usr/lib/static, and create symbolic links in there that point to the libraries you want to link statically.
<br><br>Then all you need is a LINK_DIRECTORIES( /usr/lib/static ), and thenit will pick those static libraries first.<br><br>Phillip Hellewell<br>