title: Bitbake fails on do_package_qa error?
body: <p>I am trying to write my own custom recipe. I am using Yocto Project with Bitbake.</p>
  
  <p>The following package when given <code>bitbake apriltags</code> commands does the following and throws error at <code>do_package</code></p>
  
  <p>It successfully does the following tasks:</p>
  
  <pre><code>do_fetch
  unpack
  do_compile
  </code></pre>
  
  <p>and then fails at <code>do_package</code></p>
  
  <p>In my <code>/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/apriltags/0.1-r4/git/build/lib</code> there is a <code>pkgconfig.pc</code> and <code>libapriltags.a</code> which is causing the error.</p>
  
  <p>My package recipe:</p>
  
  <pre><code>DESCRIPTION = "Apriltags application" 
  SECTION = "examples" 
  LICENSE = "CLOSED" 
  PR = "r3" 
  
  DEPENDS = "opencv"
  
  SRC_URI = "git://github.com/zafrullahsyed/apriltags.git;protocol=https;tag=v0.1"
  
  S = "${WORKDIR}/git"
  
  inherit pkgconfig autotools
  
  do_install() {
      install -d ${D}${bindir}
      install -m 0755 ${WORKDIR}/git/build/bin/apriltags_demo ${D}${bindir}
  }
  </code></pre>
  
  <p>My error as follows:</p>
  
  <pre><code>ERROR: QA Issue: package apriltags contains bad RPATH /home/zaif/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/apriltags/0.1-r3/git/build/lib in file /home/zaif/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/apriltags/0.1-r3/packages-split/apriltags/usr/bin/apriltags_demo
  ERROR: QA run found fatal errors. Please consider fixing them.
  ERROR: Function failed: do_package_qa
  ERROR: Logfile of failure stored in: /home/zaif/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/apriltags/0.1-r3/temp/log.do_package.21621
  ERROR: Task 10 (/home/zaif/yocto/poky/meta-bebot/recipes-bebot/apriltags/apriltags_0.1.bb, do_package) failed with exit code '1'
  </code></pre>