title: GCC can't find curl library
body: <p>I have a Dragino Yun Shield (it's an Arduino Yun basically, running OpenWRt Linino) and I have installed GCC on it as explained here:</p>
  
  <p><a href="http://www.sniff.org.uk/2014/05/building-gcc-for-yun-in-12-not-easy.html" rel="nofollow">http://www.sniff.org.uk/2014/05/building-gcc-for-yun-in-12-not-easy.html</a></p>
  
  <p>The compiler seems to work fine for my needs (except for some floating point warnings) but I run into a problem. My C program requires the curl library and it can't be found by the linker:</p>
  
  <pre><code>gcc -shared -fPIC kii_cloud.c kii_custom.c kii_prv_utils.c -L jansson -I curl -I jansson -l jansson -l curl -o libkii.so
  /mnt/sda1/gcc/bin/ld: cannot find -lcurl
  collect2: ld returned 1 exit status
  make: *** [build] Error 1
  </code></pre>
  
  <p>but the package libcurl is installed:</p>
  
  <pre><code>&gt; opkg files libcurl
  Package libcurl (7.29.0-1) is installed on root and has the following files:
  /usr/lib/libcurl.so.4
  /usr/lib/libcurl.so.4.3.0
  </code></pre>
  
  <p>It seems there's no libcurlX-dev package available (as in big Linux distros).</p>
  
  <p>Is there any way to fix this? Is /usr/lib/libcurl.so what the linker wants?</p>
  
  <p>Best regards and thanks.</p>