title: How can I select a static library to be linked while ARM cross compiling?
body: <p>I have an ARM cross compiler in Ubuntu(arm-linux-gnueabi-gcc) and the default archtecture is ARMv7.  However, I want to compile an ARMv5 binary. I do this by giving the compiler the <code>-march=armv5te</code> option.</p>
  
  <p>So far, so good.  Since my ARM system uses BusyBox, I have to compile my binary statically linked.  So I give gcc the <code>-static</code> option.</p>
  
  <p>However, I have a problem with <em>libc.a</em> which the linker links to my ARMv5 binary.  This file is compiled with the ARMv7 architecture option.  So, even if I cross-compile my ARM binary with ARMv5, I can't run it on my BusyBox based ARMv5 box.</p>
  
  <ol>
  <li>How can I solve this problem?</li>
  <li>Where can I get the ARMv5 <em>libc.a</em> static library, and how can I link it?</li>
  </ol>
  
  <p>Thank you in advance.</p>