Hi Joerg,<div><br></div><div>Thank you very much!</div><div><br></div><div>I finally found a working command string to cross-compile for ARM on x86.</div><div><br></div><div>./clang -v --save-temps -ccc-host-triple arm-none-linux-gnueabi --sysroot=/home/hum/Documents/Projects/arm_toolchain/arm-2010.09/arm-none-linux-gnueabi/libc -gcc-toolchain /home/hum/Documents/Projects/arm_toolchain/arm-2010.09 hello.c -o hello</div>
<div><br></div><div>Above works fine! Important options are</div><div><br></div><div>-ccc-host-triple arm-none-linux-gnueabi</div><div>--sysroot=/home/hum/Documents/Projects/arm_toolchain/arm-2010.09/arm-none-linux-gnueabi/libc</div>
<div>-gcc-toolchain /home/hum/Documents/Projects/arm_toolchain/arm-2010.09
</div><div><br></div><div>And the environment variable PATH doesn't need to be changed.</div><div><br></div><div>Thank you everyone who answered for my questions.</div><div><br></div><div>Regards</div><div>Journeyer J. Joh</div>
<div><br><div class="gmail_quote">2012/6/20 Joerg Sonnenberger <span dir="ltr"><<a href="mailto:joerg@britannica.bec.de" target="_blank">joerg@britannica.bec.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Jun 20, 2012 at 05:59:07PM +0900, Journeyer J. Joh wrote:<br>
> /home/hum/Documents/Projects/arm_toolchain/arm-2010.09/bin/arm-none-linux-gnueabi-ld<br>
<br>
Make sure the directory is in PATH, it will pick up LD automatically<br>
then.<br>
<span class="HOEnZb"><font color="#888888"><br>
Joerg<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>----------------------------------------</div><div>Journeyer J. Joh</div><div>o o s a p r o g r a m m e r</div><div>a t</div><div>g m a i l  d o t  c o m</div>
<div>----------------------------------------</div><br>
</div>