[yocto] [PATCH] Added missing LDFLAGS in sample recipe for morty branch

Burton, Ross ross.burton at intel.com
Mon Jul 3 04:41:48 PDT 2017


On 1 July 2017 at 15:53, Khem Raj <raj.khem at gmail.com> wrote:

> >  do_compile() {
> > -          ${CC} helloworld.c -o helloworld
> > +          ${CC} ${LDFLAGS} helloworld.c -o helloworld
>
> perhaps doing compile and link in two steps where CFLAGS and LDFLAGS are
> used would be clearer
>
> something like
>
> ${CC} ${CFLAGS} -c helloworld.c -o helloworld.o
> ${LD} ${LDFLAGS} helloworld.o -o helloworld


Yes, we're also missing CFLAGS and CPPFLAGS, so either throw them all in a
single call or do the two parts separately.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170703/85e73e86/attachment.html>


More information about the yocto mailing list