Re: Damaged dependency files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux