v01d opened a new issue #1764:
URL: https://github.com/apache/incubator-nuttx/issues/1764


   While trying to trace some errores that appear when modifying configuration 
and then doing "make build" without a previous "make clean" I found one case.
   After the first build all `.a` libraries are built, however a change in 
configuration may change the list of object files to use for building them but 
they will not be rebuilt since there's no `Make.dep` for them (the dependency 
is written as: `<lib>: $(OBJS)` which will not trigger if $(OBJS) is different 
from last run). I'm thinking that since we already clear all `Make.dep` files 
and since is clearly a case of a target having dependencies changed, that the 
solution could be to generate a Make.dep rule with the concrete objects during 
build (like: `<lib>: obj1.o obj2.o ...`). This way, whenever a configuration 
changes the list of objects that rule changes and triggers the lib creation 
again.
   
   What do you think?
   
   Also, I wonder if this could happen in other scenarios the an `$(OBJS)` 
variable changes between builds. I guess the only concern should be libraries 
since they are the only intermediate object that is built. Or is there any 
other?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to