yoctobitbakeopenembedded

didn't pass LDFLAGS? [ldflags]


I created a recipe, summary as follows:

do_install() {
  install -d ${D}/GreenTea
  cp ${S}/foo.sh ${D}/GreenTea
  cp ${S}/foo.so ${D}/GreenTea

when bitbake this recipe, it shows: didn't pass LDFLAGS? [ldflags]

ERROR: greentea-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the ELF binary /home/tea/greentea4/build/tmp/work/corei7-64-poky-linux/greentea/1.0-r0/packages-split/greentea/GreenTea/foo.so, didn't pass LDFLAGS? [ldflags]

What can I do?


Solution

  • You can skip the warning:

    INSANE_SKIP:${PN} += "ldflags"
    
    # when this question was originally asked the format was
    INSANE_SKIP_${PN} += "ldflags"
    

    This does not mean the library will actually work on target (the QA warnings are there for a reason) but it will allow packaging to continue. The dev-manual now has a whole section about Pre-built binaries.