title: Cross-compiling for ARM while linking to libssh - libssh.so: file not recognized
body: <p>I want to know if it is possible to link my application to libssh while cross-compiling with Sourcery toolchain for ARM. My host system is Ubuntu x86_64</p>
  
  <pre><code>:~/c/ssh$ arm-none-linux-gnueabi-gcc ssh.c -o arm `pkg-config --cflags --libs libssh`
  cc1: warning: include location "/usr/local/include" is unsafe for cross-compilation [-Wpoison-system-directories]
  /home/user/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/local/lib" is unsafe for cross-compilation
  /usr/local/lib/libssh.so: file not recognized: File format not recognized
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>My application compile fine with gcc using this command:</p>
  
  <pre><code>gcc ssh.c -o ssh -lssh
  </code></pre>
  
  <p>Adding the same -lssh flag while cross-compiling result in the following error:</p>
  
  <pre><code>:~/c/ssh$ arm-none-linux-gnueabi-gcc ssh.c -o arm -lssh
  ssh.c:2:49: fatal error: libssh/libssh.h: No such file or directory
  compilation terminated.
  </code></pre>