Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

helloworld: Adhere to ${CFLAGS} and {LDFLAGS}. Ehrm...

Signed-off-by: Leon Woestenberg <leon@sidebranch.com>
  • Loading branch information...
commit 4a021e985624d299dacbb66c17ffd6b70149476a 1 parent b37e2b2
Leon Woestenberg likewise authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 recipes/helloworld/helloworld_1.0.0.bb
5 recipes/helloworld/helloworld_1.0.0.bb
View
@@ -1,6 +1,6 @@
DESCRIPTION = "Minimal statically compiled Hello world!"
LICENSE = "GPL"
-PR = "r0"
+PR = "r1"
S = "${WORKDIR}/${P}"
@@ -11,7 +11,8 @@ do_fetch () {
}
do_compile () {
- ${CC} -o helloworld helloworld.c -static
+ ${CC} ${CFLAGS} -c -o helloworld.o helloworld.c
+ ${CC} ${LDFLAGS} -o helloworld helloworld.o -static
}
do_install () {
Please sign in to comment.
Something went wrong with that request. Please try again.