This does not seem to work (maybe it was before, from what I read here: 
https://stackoverflow.com/questions/2129391/append-to-gnu-make-variables-via-command-line).
 The "override" directive is another option but this requires using it 
everywhere.

On Mon, Sep 7, 2020, at 17:13, Gregory Nutt wrote:
> 
> > I see that it is possible to use:
> >
> > make EXTRAFLAGS=<some flags>
> >
> > to pass flags to be used during compilation, but there does not seem to be 
> > a way to pass extra
> > link-time flags. There is EXTRA_LIBS and EXTRA_LIBPATHS but these are used 
> > internally and if I do:
> >
> > make EXTRA_LIBS=<flags> EXTRA_LIBPATHS=<flags>
> >
> > these <flags> override the internal ones and compilation fails. Is there a 
> > way to do this already or
> > it is something that would need to be added? Note that I'm aware that you 
> > could do this from each board's
> > Make.defs, but the point is to allow linking against external library 
> > without modifying anything inside nuttx/
> > each time.
> 
> How about:
> 
> make EXTRA_LIBS += <flags> EXTRA_LIBPATHS += <flags>
> 
> 

Reply via email to