[LLVMdev] any option can control final linker choice in LLVM?
陳韋任 (Wei-Ren Chen)
chenwj at iis.sinica.edu.tw
Tue Feb 26 22:52:57 PST 2013
On Tue, Feb 26, 2013 at 11:24:39PM +0800, Wei Tang wrote:
> Hi All,
> I want to build cross compiler with LLVM-3.2 for X86, and hope LLVM
> compiler driver to pick up linker located
> in cross toolchain directory. It seems LLVM driver always chooses system linker
> "/usr/bin/ld" by default.
> Any option can be used to control? Thanks in advance!
I remember clang [1] already provide a option for specifying the
linker you want to use. But I think it should pick the right one,
do you give clang the right triple?
Regards,
chenwj
[1] http://clang.llvm.org/
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
More information about the llvm-dev
mailing list