Branch: Tag:

2017-07-23

2017-07-23 10:31:37 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Build: Use $(CC) to generate dependencies.

Use $(CC) instead of a hard-coded gcc to generate dependencies.

Fixes issues building dependencies on platforms or targets where
$(CC) doesn't expand to just a plain gcc.

1069:      # make dependencies   depend: $(SRC_TARGETS) -  gcc -MM -MG $(PREFLAGS) $(SRCDIR)/*.c | $(TMP_BINDIR)/fixdepends.sh "$(SRCDIR)" "$(SRCDIR)" /dev/null +  $(CC) -MM -MG $(PREFLAGS) $(SRCDIR)/*.c | $(TMP_BINDIR)/fixdepends.sh "$(SRCDIR)" "$(SRCDIR)" /dev/null    -@(while :; do \    echo foo > cfl.$@; test "`echo cfl.*`" = cfl.$@ && break; \    rm cfl.$@; echo "Waiting to run config.status serially:" cfl.*; sleep 1; \