<div dir="ltr">Hi, Renato.<br><div class="gmail_extra"><br><div class="gmail_quote">2013/9/26 Renato Golin <span dir="ltr">&lt;<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">On 26 September 2013 07:46, Anton Smirnov <span dir="ltr">&lt;<a href="mailto:dev@antonsmirnov.name" target="_blank">dev@antonsmirnov.name</a>&gt;</span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">

I&#39;m trying to cross-compile clang to run on Android devices (both arm and x86).<br></div><div style="font-family:arial,sans-serif;font-size:13px">I&#39;ve read <a href="http://llvm.org/docs/GettingStarted.html" target="_blank">&quot;getting started&quot;</a> (including cross-compilation section) and all the websites about clang cross-compilation that i was able to find.</div>

</div></blockquote><div><br></div></div><div>Hi Anton,</div><div><br></div><div>FYI, there are two new docs:</div><div><a href="http://clang.llvm.org/docs/CrossCompilation.html" target="_blank">http://clang.llvm.org/docs/CrossCompilation.html</a><br>

</div><div><a href="http://llvm.org/docs/HowToCrossCompileLLVM.html" target="_blank">http://llvm.org/docs/HowToCrossCompileLLVM.html</a><br></div><div><br></div><div>But they won&#39;t help you with your problem.</div></div>
</div></div></blockquote><div><br></div><div>Okay, i will read them anyway.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">
<div class="gmail_quote"><div><br></div><div>
I&#39;ll link them from the Getting Started section on cross-compilation to make it more accessible.</div><div class="im"><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr">
<div style="font-family:arial,sans-serif;font-size:13px">the problem is that macosx ld does not support &quot;--version-script&quot; parameter.<br></div><div style="font-family:arial,sans-serif;font-size:13px">this seems to relate to cross-compilation only as compilation for host system lasts much longer and i believe it&#39;s okay.</div>

</div></blockquote><div><br></div></div><div>Either this is a bug in Apple&#39;s ld, or it&#39;s an unnecessary option of the Android build system. Other folks in this list will be able to give you a good answer on how to fix this.</div>
</div></div></div></blockquote><div><br></div><div>This is not &quot;bug&quot; i believe since i was able to find similar problems in other projects and they are solved by additional checking -</div><div>for apple command line just does not have this parameter. Also i don&#39;t have problem for compilation for host system. It means</div>
<div>that it is taken into account, but it&#39;s missed for cross-compilation.</div><div><br></div><div>That&#39;s why i believe it&#39;s bug.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div><br></div><div>cheers,</div><div>--renato</div></div></div></div>
<br>_______________________________________________<br>
LLVMLinux mailing list<br>
<a href="mailto:LLVMLinux@lists.linuxfoundation.org">LLVMLinux@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a><br></blockquote></div><br></div></div>