[Build-common-hackers] Bug#487546: Bug#487546: Bug#487546: Bug#487546: cdbs: class/langcore.mk should set CC=gcc if CC is not set

Peter Eisentraut petere at debian.org
Sun Jun 21 13:56:05 UTC 2009

On Sunday 21 June 2009 14:40:25 Jonas Smedegaard wrote:
> On Sun, Jun 21, 2009 at 01:32:44PM +0300, Peter Eisentraut wrote:
> >I turns out that /usr/bin/cc is an alternative, and so we cannot assume
> >that it is gcc.  And although it is not explicitly spelled out in the
> >policy, the build essential list strongly hints that packages are
> >supposed to be built with gcc by default.
> >
> >So I think it would be easy and safe to set CC = gcc near where we set
> >CFLAGS, and the same for C++.
> >
> >Another advantage of this would be that packages built with cdbs don't
> >use a different compiler invocation than those built without.
> A build environment using a different C compiler than the default gcc as
> cc is broken with respect to Package compilation. (I believe that to be
> in Policy somewhere too).
> I do not see it as the task of CDBS to fix/overrule broken build
> environments.

But that is exactly the point.  cdbs will by default select "cc" as the 
compiler, and there is no guarantee anywhere that that is gcc.  So in 
accordance with what you and I are saying, cdbs should take care that it 
really calls gcc.

Or perhaps we should ask for clarification on this matter in a wider audience.

More information about the Build-common-hackers mailing list