Yes, Brooks has told me the option and it works. Thanks a lot! <br><br>-B/path/to/directory/that/ld/resides/in<br><br><br>wei<br><br><div class="gmail_quote">On Wed, Feb 27, 2013 at 2:52 PM, 陳韋任 (Wei-Ren Chen) <span dir="ltr"><<a href="mailto:chenwj@iis.sinica.edu.tw" target="_blank">chenwj@iis.sinica.edu.tw</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Feb 26, 2013 at 11:24:39PM +0800, Wei Tang wrote:<br>
</div><div><div class="h5">> Hi All,<br>
>     I want to build cross compiler with LLVM-3.2 for X86, and hope LLVM<br>
> compiler driver to pick up linker located<br>
> in cross toolchain directory. It seems LLVM driver always chooses system linker<br>
> "/usr/bin/ld" by default. <br>
> Any option can be used to control?  Thanks in advance!<br>
<br>
</div></div>  I remember clang [1] already provide a option for specifying the<br>
linker you want to use. But I think it should pick the right one,<br>
do you give clang the right triple?<br>
<br>
Regards,<br>
chenwj<br>
<br>
[1] <a href="http://clang.llvm.org/" target="_blank">http://clang.llvm.org/</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Wei-Ren Chen (陳韋任)<br>
Computer Systems Lab, Institute of Information Science,<br>
Academia Sinica, Taiwan (R.O.C.)<br>
Tel:886-2-2788-3799 #1667<br>
Homepage: <a href="http://people.cs.nctu.edu.tw/~chenwj" target="_blank">http://people.cs.nctu.edu.tw/~chenwj</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Best Regards <br>tangwei