helloworld: Use {C,LD}FLAGS during build. Duh.
authorLeon Woestenberg <leon@sidebranch.com>
Thu, 3 Dec 2009 18:22:24 +0000 (19:22 +0100)
committerLeon Woestenberg <leon@sidebranch.com>
Thu, 3 Dec 2009 18:23:18 +0000 (19:23 +0100)
Signed-off-by: Leon Woestenberg <leon@sidebranch.com>
recipes/helloworld/helloworld_1.0.0.bb

index af29a77..83b3965 100644 (file)
@@ -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 () {