title: Shared libraries cannot be found when building application in Yocto
body: <p>I tried to compile my application with cmake in my Yocto project. My application depends on some static and dynamic libraries. And I added the dependencies in my recipe. I confirmed that all .so and .a have had been installed into recipe-sysroot/usr/lib during building. But some errors still occurs, like,
  ld: cannot find -lparson
  ld: cannot find -luamqp</p>
  
  <p>And I also observed some wired messages like,
  -L/yocto/build_test/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/my-app/1.0-r0/git/lib
  but there is no git/lib</p>
  
  <p>How can I change the link directory to /usr/lib</p>
  
  <pre><code>DEPENDS = "\
          azure-iot-sdk-c \
          openssl \
          zlib \
          curl \
          boost \
          parson \
          gtest \
  "
  
  S = "${WORKDIR}/git"
  B = "${WORKDIR}/build"
  </code></pre>