title: Static linking libcurl using c
body: <p>I am using Libcurl in my application with C and GNU compiler on a linux machine.
  Application also uses OpenSSL libraries and some other libraries. I am trying to statically link the libraries, except for <code>lcurl</code> linking with other libraries works fine.</p>
  
  <p>I am trying to compile as below.</p>
  
  <pre><code>gcc -static -I. -o test test.c -lz -lssl -lcrypto -lcurl
  </code></pre>
  
  <p>Am I doing anything wrong?
  Is there a way to force static linking of some librairies (libc for exemple) ?</p>