Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 380
Mark Kang Avatar asked Aug 29 '26 19:08

Mark Kang


1 Answers

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

like image 114
Daniel Selvan Avatar answered Sep 08 '26 09:09

Daniel Selvan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!