summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorLeon Woestenberg <leon@sidebranch.com>2009-12-03 19:22:24 +0100
committerLeon Woestenberg <leon@sidebranch.com>2009-12-03 19:23:18 +0100
commitebb9899f5524aa49005c252a104e3126d58b29f3 (patch)
tree3821e834b1a04887e96c626960aaa4adb2a70f1d /recipes
parentdd2e82a8816dfa679a7b6ac1e0abac31a9fe6cd0 (diff)
helloworld: Use {C,LD}FLAGS during build. Duh.
Signed-off-by: Leon Woestenberg <leon@sidebranch.com>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/helloworld/helloworld_1.0.0.bb5
1 files changed, 3 insertions, 2 deletions
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 () {