[yocto] [PATCH] example-recipe: Fix LDFLAGS compilation issue on newly created recipes

André Draszik git at andred.net
Thu Nov 24 02:03:30 PST 2016


On Wed, 2016-11-23 at 17:27 -0600, Alejandro Hernandez wrote:
> Signed-off-by: Alejandro Hernandez <alejandro.hernandez at linux.intel.com>
> ---
>  .../target/arch/layer/recipes-example/example/example-recipe-0.1.bb     | 
> 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git 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
> 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
> @@ -14,7 +14,7 @@ SRC_URI = "file://helloworld.c"
>  S = "${WORKDIR}"
>  
>  do_compile() {
> -	     ${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'




More information about the yocto mailing list