[Build-common-hackers] Bug#487546: 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 19:16:44 UTC 2009

On Sunday 21 June 2009 20:03:09 Martin-Éric Racine wrote:
> On Sun, Jun 21, 2009 at 5:19 PM, Peter Eisentraut<petere at debian.org> wrote:
> > On Sunday 21 June 2009 17:02:43 Martin-Éric Racine wrote:
> >> Setting CC=cc is entirely the wrong thing to do when passing -g as a
> >> compiler option. If you pass -g, then you also need to specific
> >> CC=gcc.
> >
> > Why?
> Because -g produces GDB-specific output, which is not available on
> non-GNU compilers.

The Single Unix Specification supports the -g option for compilers, so you can 
assume that anything that is a reasonable Unix C compiler supports it.

We should figure out what the Debian policy for all this is, though.

More information about the Build-common-hackers mailing list