Asterisk Makefile hardcodes gcc as CC

Jérôme Warnier jwarnier@beeznest.net
Mon, 04 Jul 2005 00:45:14 +0200


Le lundi 04 juillet 2005 à 01:32 +0300, Tzafrir Cohen a écrit :
> On Mon, Jul 04, 2005 at 12:21:09AM +0200, Jérôme Warnier wrote:
> > In the main Makefile of Asterisk (it seems it does not use configure),
> > CC=gcc. It can be troublesome, or can render distcc for example
> > unusable.
> 
> Which can easily be overriden by setting CC=distcc in the environment.
> I did ssee a number of LD=gcc in subdirectory makefiles (e.g:
> codecs/gsm) but didn't bother looking into them yet.
> 
> > 
> > Is it possible to fix in next upload this or prove me I'm wrong?
> 
> Have you actually tried to use distcc? Any errors?
Yes, I did, and it tries to use it for the few first calls, then switch to gcc.

In fact, even when using gcc, the build is not clean for building in
parallel, for example with "make -jN", it fails on several points, and
goes further if you restart the build.