[OE-core] [PATCH v2 6/8] blktrace: obey LDFLAGS for btrecord

Christopher Larson clarson at kergoth.com
Thu Sep 18 20:51:04 UTC 2014


On Thu, Sep 18, 2014 at 12:26 AM, Khem Raj <raj.khem at gmail.com> wrote:

> On 9/16/14 6:17 PM, Christopher Larson wrote:
> > From: Christopher Larson <chris_larson at mentor.com>
> >
> > Signed-off-by: Christopher Larson <chris_larson at mentor.com>
> > ---
> >  meta/recipes-kernel/blktrace/blktrace/ldflags.patch | 8 ++++++--
> >  1 file changed, 6 insertions(+), 2 deletions(-)
> >
> > diff --git a/meta/recipes-kernel/blktrace/blktrace/ldflags.patch
> b/meta/recipes-kernel/blktrace/blktrace/ldflags.patch
> > index b9c7c20..037d161 100644
> > --- a/meta/recipes-kernel/blktrace/blktrace/ldflags.patch
> > +++ b/meta/recipes-kernel/blktrace/blktrace/ldflags.patch
> > @@ -59,8 +59,12 @@ Signed-off-by: Fahad Usman <fahad_usman at mentor.com>
> >   INCS        = -I. -I.. -I../btt
> >   OCFLAGS     = -UCOUNT_IOS -UDEBUG -DNDEBUG
> >   XCFLAGS     = -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -@@ -35,7 +36,7 @@ btrecord: btrecord.o
> > -     $(CC) $(CFLAGS) -o $@ $(filter %.o,$^)
> > +@@ -32,10 +33,10 @@ clean: docsclean
> > +     $(CC) $(CFLAGS) -c -o $*.o $<
> > +
> > + btrecord: btrecord.o
> > +-    $(CC) $(CFLAGS) -o $@ $(filter %.o,$^)
> > ++    $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(LDFLAGS)
> >
>
> aren't you passing LDFLAGS to compile step as well here ?


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.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20140918/a6f09adf/attachment-0002.html>


More information about the Openembedded-core mailing list