<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 18, 2014 at 12:26 AM, Khem Raj <span dir="ltr"><<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="">On 9/16/14 6:17 PM, Christopher Larson wrote:<br>
> From: Christopher Larson <<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>><br>
><br>
> Signed-off-by: Christopher Larson <<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>><br>
> ---<br>
> meta/recipes-kernel/blktrace/blktrace/ldflags.patch | 8 ++++++--<br>
> 1 file changed, 6 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/meta/recipes-kernel/blktrace/blktrace/ldflags.patch b/meta/recipes-kernel/blktrace/blktrace/ldflags.patch<br>
> index b9c7c20..037d161 100644<br>
> --- a/meta/recipes-kernel/blktrace/blktrace/ldflags.patch<br>
> +++ b/meta/recipes-kernel/blktrace/blktrace/ldflags.patch<br>
> @@ -59,8 +59,12 @@ Signed-off-by: Fahad Usman <<a href="mailto:fahad_usman@mentor.com">fahad_usman@mentor.com</a>><br>
> INCS = -I. -I.. -I../btt<br>
> OCFLAGS = -UCOUNT_IOS -UDEBUG -DNDEBUG<br>
> XCFLAGS = -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>
> -@@ -35,7 +36,7 @@ btrecord: btrecord.o<br>
> - $(CC) $(CFLAGS) -o $@ $(filter %.o,$^)<br>
> +@@ -32,10 +33,10 @@ clean: docsclean<br>
> + $(CC) $(CFLAGS) -c -o $*.o $<<br>
> +<br>
> + btrecord: btrecord.o<br>
> +- $(CC) $(CFLAGS) -o $@ $(filter %.o,$^)<br>
> ++ $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(LDFLAGS)<br>
><br>
<br>
</div></div>aren't you passing LDFLAGS to compile step as well here ?</blockquote></div><br></div><div class="gmail_extra">I don't think so. This rule creates btrecord from btrecord.o, it doesn't compile btrecord.c to btrecord.o, that's an entirely different rule.<br>-- <br>Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics
</div></div>