On 25/10/2015 17:16, Segher Boessenkool wrote:
On Sun, Oct 25, 2015 at 04:48:53PM +0100, Laurent Vivier wrote:
Replace "-I" by "-iquote" to only take files from this directory when '#include "..."' is used ('#include <...>' works as usual)
Yes :-)
HOSTCFLAGS+= -MMD -MP -MT $@ -MF '$(*D)/$(*F).d' -HOSTINCLUDES := -I$(SRCDIR)/include -I$(SRCDIR)/kernel -I$(SRCDIR)/kernel/include -I$(ODIR)/target/include +HOSTINCLUDES := -I$(SRCDIR)/include -I$(SRCDIR)/kernel -I$(SRCDIR)/kernel/include -iquote $(ODIR)/target/include
Shouldn't you give these other dirs the same treatment?
Perhaps, but I don't want to break anything with useless changes.
Line is long btw, split it (with +=)?
I can do that. If a new version of the series is needed I will.
Thank you for your comments, Laurent