[oe-commits] Leon Woestenberg : helloworld: Adhere to ${CFLAGS} and {LDFLAGS}. Ehrm...

git version control git at git.openembedded.org
Thu Nov 26 20:26:25 UTC 2009


Module: openembedded.git
Branch: nios2
Commit: 4a021e985624d299dacbb66c17ffd6b70149476a
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4a021e985624d299dacbb66c17ffd6b70149476a

Author: Leon Woestenberg <leon at sidebranch.com>
Date:   Thu Nov 26 21:25:43 2009 +0100

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

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