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 <matthew.tsenkov@konsulko.com>
(From yocto-docs rev: 99a53f443193c0becd48a07a2dd740bb417dcf49)

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Leon Anavi
2021-01-12 19:46:00 +02:00
committed by Richard Purdie
parent 827e68675a
commit 87e7057b71
2 changed files with 2 additions and 2 deletions

View File

@@ -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() {

View File

@@ -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() {