[yocto] [meta-systemdev][PATCH] turbostat: pass in LDFLAGS when building the recipe
Hongzhi.Song
hongzhi.song at windriver.com
Wed May 16 23:01:51 PDT 2018
issue: do_package_qa: QA Issue: No GNU_HASH in the elf binary
do_package_qa: QA run found fatal errors. Please consider fixing them.
do_package_qa: Function failed: do_package_qa
This indicates that binaries produced when building the recipe have
not been linked with the LDFLAGS options provided by the build system.
Passing in LDFLAGS using TARGET_CC_ARCH can fix it.
Signed-off-by: Hongzhi.Song <hongzhi.song at windriver.com>
---
recipes-kernel/turbostat/turbostat.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/recipes-kernel/turbostat/turbostat.bb b/recipes-kernel/turbostat/turbostat.bb
index e55ec72..f4614b4 100644
--- a/recipes-kernel/turbostat/turbostat.bb
+++ b/recipes-kernel/turbostat/turbostat.bb
@@ -49,3 +49,5 @@ do_install() {
python do_package_prepend() {
d.setVar('PKGV', d.getVar("KERNEL_VERSION", True).split("-")[0])
}
+
+TARGET_CC_ARCH += "${LDFLAGS}"
--
2.11.0
More information about the yocto
mailing list