Don't assume gcc in makedeps.yash
"${CC:-cc}"
The CC environment variable is not exported from the Makefile by default, so this would usually expand to cc. If you don't want to assume gcc, you should not want to assume cc either.
It would be easy to make CC available in the makedeps.yash script:
diff --git a/Makefile.in b/Makefile.in index 4d3bae39..1d332916 100644 --- a/Makefile.in +++ b/Makefile.in @@ -240,7 +240,7 @@ copy-distfiles: distfiles mkdir -p $(topdir)/$(DISTTARGETDIR) cp $(DISTFILES) $(topdir)/$(DISTTARGETDIR) makedeps: _PHONY $(TARGET) - $(topdir)/$(TARGET) $(topdir)/makedeps.yash $(SOURCES) + CC=$(CC) $(topdir)/$(TARGET) $(topdir)/makedeps.yash $(SOURCES) # ctags conforms to POSIX, but etags and cscope do not. CTAGS = @CTAGS@
Fixed in r4160
Thanks
Don't assume that the compiler is called gcc in makedeps.yash: