Damaged dependency files
Segher Boessenkool
segher@kernel.crashing.org
Mon Nov 29 21:06:00 GMT 2010
> I.e. extra line with single backslash in the beginning and missing
> '$(wildcard' make's function after object file name.
This isn't caused by GCC, or not directly anyway. Firebird's
make.rules has:
$(OBJ)/%.o: $(SRC_ROOT)/%.c
$(CC) $(WCFLAGS) -c $(firstword $<) -o $@
@sed -i -e "1s/:/: \$$(wildcard/" -e "\$$s/\(.*\)/\\1)/" $(patsubst
%.o,%.d,$@)
Something in that sed command does not work as expected; you should
look at the .d file before it is changed to see what's up (you can give
the -i flag an argument which it will use to make a backup of the original
file before it edits it; e.g. -i.orig will make a bla.d.orig).
Segher
More information about the Gcc-help
mailing list