From 87e7057b71fdd0f084c0b7e3396067bea0eb3d24 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Tue, 12 Jan 2021 19:46:00 +0200 Subject: common-tasks.rst: Fix GNU_HASH in hello.bb Fix the following GNU_HASH issue in "Single .c File Package (Hello World!)" example: ERROR: hello-1.0-r0 do_package_qa: QA Issue: File /usr/bin/helloworld in package hello doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags] Reported-by: Matthew Tsenkov (From yocto-docs rev: 99a53f443193c0becd48a07a2dd740bb417dcf49) Signed-off-by: Leon Anavi Signed-off-by: Richard Purdie --- documentation/dev-manual/common-tasks.rst | 2 +- documentation/ref-manual/examples/hello-single/hello.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'documentation') diff --git a/documentation/dev-manual/common-tasks.rst b/documentation/dev-manual/common-tasks.rst index e1dee8ecdd..6281e0e3b4 100644 --- a/documentation/dev-manual/common-tasks.rst +++ b/documentation/dev-manual/common-tasks.rst @@ -2298,7 +2298,7 @@ directory BitBake uses for the build. S = "${WORKDIR}" do_compile() { - ${CC} helloworld.c -o helloworld + ${CC} ${LDFLAGS} helloworld.c -o helloworld } do_install() { diff --git a/documentation/ref-manual/examples/hello-single/hello.bb b/documentation/ref-manual/examples/hello-single/hello.bb index 0812743e39..90d3aefd86 100644 --- a/documentation/ref-manual/examples/hello-single/hello.bb +++ b/documentation/ref-manual/examples/hello-single/hello.bb @@ -8,7 +8,7 @@ SRC_URI = "file://helloworld.c" S = "${WORKDIR}" do_compile() { - ${CC} helloworld.c -o helloworld + ${CC} ${LDFLAGS} helloworld.c -o helloworld } do_install() { -- cgit v1.2.3-54-g00ecf