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?
If you're compiling the source for yourself, you should not skip the LDFLAGS warning as mentioned by @jussi-kukkonen and you should add the following line in your Yocto recipe
TARGET_CC_ARCH += "${LDFLAGS}"
Ref: How to fix : ERROR: do_package_qa: QA Issue: No GNU_HASH in the elf binary
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With