Permalink
Browse files

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

Signed-off-by: Leon Woestenberg <leon@sidebranch.com>
  • Loading branch information...
1 parent b37e2b2 commit 4a021e985624d299dacbb66c17ffd6b70149476a @likewise likewise committed Nov 26, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 recipes/helloworld/helloworld_1.0.0.bb
@@ -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 () {

0 comments on commit 4a021e9

Please sign in to comment.