Skip to contentSkip to conversation

example-recipe: Fix LDFLAGS compilation issue on newly created recipes

PATCH In review Alejandro Hernandez 2 participants 2 messages Nov 23, 2016 – Nov 24, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 example-recipe: Fix LDFLAGS compilation issue on newly created recipes

---
 .../target/arch/layer/recipes-example/example/example-recipe-0.1.bb     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.bb +1 -1
index 5fbf594..e534d36 100644
@@ -14,7 +14,7 @@ SRC_URI = "file://helloworld.c"
 S = "${WORKDIR}"
 
 do_compile() {
-	     ${CC} helloworld.c -o helloworld
+	     ${CC} ${LDFLAGS} helloworld.c -o helloworld
 }
 
 do_install() {
Signature · 1 line
2.10.1
#1 lore raw
Quoted 19 lines · Alejandro Hernandez

---
 .../target/arch/layer/recipes-example/example/example-recipe-0.1.bb     | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

example/example/example-recipe-0.1.bb b/scripts/lib/bsp/substrate/target/arch/layer/recipes- example/example/example-recipe-0.1.bb
index 5fbf594..e534d36 100644
--- a/scripts/lib/bsp/substrate/target/arch/layer/recipes- example/example/example-recipe-0.1.bb
+++ b/scripts/lib/bsp/substrate/target/arch/layer/recipes- example/example/example-recipe-0.1.bb

(quoted diff) +0 -0
@@ -14,7 +14,7 @@ SRC_URI = "file://helloworld.c"

 S = "${WORKDIR}"

 do_compile() {

scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.bb SRC_URI = "file://helloworld.c" · line 17

Quoted 2 lines
scripts/lib/bsp/substrate/target/arch/layer/recipes-example/example/example-recipe-0.1.bb +1 -1
-	     ${CC} helloworld.c -o helloworld
+	     ${CC} ${LDFLAGS} helloworld.c -o helloworld

If you're fixing this, I think you should also add ${CPPFLAGS} and ${CFLAGS}

Cheers,
Andre'