[oe-commits] Leon Woestenberg : helloworld: Use {C, LD}FLAGS during build. Duh.
git version control
git at git.openembedded.org
Fri Dec 4 08:51:52 UTC 2009
Module: openembedded.git
Branch: shr/merge
Commit: ebb9899f5524aa49005c252a104e3126d58b29f3
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ebb9899f5524aa49005c252a104e3126d58b29f3
Author: Leon Woestenberg <leon at sidebranch.com>
Date: Thu Dec 3 19:22:24 2009 +0100
helloworld: Use {C,LD}FLAGS during build. Duh.
Signed-off-by: Leon Woestenberg <leon at sidebranch.com>
---
recipes/helloworld/helloworld_1.0.0.bb | 5 +++--
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 af29a77..83b3965 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 () {
More information about the Openembedded-commits
mailing list