From: Leon Woestenberg Date: Thu, 3 Dec 2009 18:22:24 +0000 (+0100) Subject: helloworld: Use {C,LD}FLAGS during build. Duh. X-Git-Tag: Release-2010-05/1~1494 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebb9899f5524aa49005c252a104e3126d58b29f3;p=openembedded.git helloworld: Use {C,LD}FLAGS during build. Duh. Signed-off-by: Leon Woestenberg --- diff --git a/recipes/helloworld/helloworld_1.0.0.bb b/recipes/helloworld/helloworld_1.0.0.bb index af29a7769a..83b3965960 100644 --- a/recipes/helloworld/helloworld_1.0.0.bb +++ b/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 () {