hi,<br>I've hit a problem when compiling a KDevelop test using gold. If we use the usual ld it works fine but with gold it requires all the libraries to be specified. As for what Andreas told me, it looks like linking against the language would be enough to get the links for the shell and project (since language links both of them), but my host seems to disagree.<br>
<br>Who's the fault here? any hint?<br><br>Thanks,<br>Aleix<br><br><div class="gmail_quote">On Fri, Jul 17, 2009 at 11:12 PM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On 17.07.09 22:50:09, Aleix Pol wrote:<br>
> but they are used by the files we're compiling there, it's not possible it's<br>
> linked to the libraries if they're not linked.<br>
<br>
</div>Please read up on CMake's link-interface-libraries. You don't have to<br>
link explicitly against libs which are pulled in via interface-libs<br>
already. No matter wether you use symbols from those libs or not.<br>
<br>
The idea is that if you have libraries foo and bar and bar uses foo<br>
(i.e. links against it). The foo is in the link-interface for bar, if<br>
bar has symbols from foo in its public interface. This is the case here,<br>
hence shell is in the link-interface for tests, and project+language are<br>
in the link-interface for shell. CMake will then make sure that the<br>
actual linker line contains all libs that are either directly mentioned<br>
in the cmakelists.txt, or are in the link-interface (directly or<br>
indirectly) of one of the libs mentioned there (etc...).<br>
<br>
Thus, as I said if this breaks for you using gold, then this is either a<br>
gold-bug or (more probably) a more general problem with how we use and<br>
set the link-interface-libs. And for the latter we should contact the<br>
kde-buildsystem list as I can't see anything wrong.<br>
<br>
Andreas<br>
<font color="#888888"><br>
--<br>
Everything will be just tickety-boo today.<br>
</font></blockquote></div><br>