title: Cross-compiling for ARM with Autoconf
body: <p>I am having trouble cross-compiling a library for my arm board using autconf.</p>
  
  <p>I am using this line:</p>
  
  <pre><code>./configure --target=arm-linux --host=arm-linux --prefix=/bla/bla/bla/linux_arm_tool CFLAGS='-m32'
  make
  make install
  </code></pre>
  
  <p>When I do <code>file</code> to check it I get:</p>
  
  <pre><code>libjpeg.so.8.4.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped
  </code></pre>
  
  <p>That doesn't seem right at all, but I tried using it anyway... and I get:</p>
  
  <pre><code>/usr/lib/gcc/arm-linux-gnueabi/4.5.3/../../../../arm-linux-gnueabi/bin/ld: skipping incompatible /bla/bla/bla/bla/../linux_arm_tool/lib/libjpeg.so when searching for -ljpeg
  </code></pre>
  
  <p>I'm at a loss, I've been googling for an hour now...</p>