Handling of CONFIG_EXTRA_LDFLAGS in submakes

Greg Whiteley greg.whiteley at gmail.com
Wed Apr 15 04:27:53 UTC 2015


Change looks good - works for me.

Thanks,

Greg

On Tue, 14 Apr 2015 at 22:31 Denys Vlasenko <vda.linux at googlemail.com>
wrote:

> Fixed (hopefully). Can you try current git?
>
> On Tue, Apr 14, 2015 at 9:47 AM, Greg Whiteley <greg.whiteley at gmail.com>
> wrote:
> > Hi All,
> >
> > I've run into trouble setting CONFIG_EXTRA_LDFLAGS in my config.  It is
> not
> > honoured in some of the sub-make files (first failure is in applets).
> In my
> > specific case I'm selecting architecture-specific options that need to be
> > consistent across all build/link steps (in this case endian-selection).
> >
> > The handling of CONFIG_EXTRA_LDFLAGS defined in a defconfig seems to be
> > different from the handling of CONFIG_EXTRA_(LDLIBS|CFLAGS).  Whereas
> > CONFIG_EXTRA_CFLAGS is loaded into CFLAGS by Makefile.flags
> > CONFIG_EXTRA_LDFLAGS is loaded into EXTRA_LDFLAGS.
> >
> > Adding EXTRA_LDFLAGS to the list of exports in Makefile works around the
> > problem for me and ensures that the the flags are available to sub-makes.
> >
> > I thought it worth noting to you, since as far as I can tell
> EXTRA_LDFLAGS
> > provides a slightly different service to LDFLAGS, and I'm not sure that
> my
> > workaround would be generally applicable. I think a longer term fix might
> > involve having different CONFIG_ options to override EXTRA_LDFLAGS
> > separately to LDFLAGS.
> >
> > Cheers,
> >
> > Greg
> >
> >
> > _______________________________________________
> > busybox mailing list
> > busybox at busybox.net
> > http://lists.busybox.net/mailman/listinfo/busybox
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20150415/e1f67ed7/attachment.html>


More information about the busybox mailing list