[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cc vs gcc



"brian m. carlson" <sandals@crustytoothpaste.ath.cx> writes:

> On Sun, Jun 21, 2009 at 10:29:37PM +0300, Peter Eisentraut wrote:
>> There is a bit of discussion in bug #487546 about whether using cc or gcc as 
>> the compiler is appropriate.
>> 
>> Particular questions:
>> 
>> * Are Debian packages supposed to be built by default using /usr/bin/gcc (or 
>> whatever gcc is first in the path)?  Or is it valid to use cc?
>
> cc has traditionally been the system-default compiler for a Unix system.
> Generally, it will support those options specified by POSIX for c99,
> since those are a fairly barebones set of options, but it is not
> mandated to (since it is not specified).
>
> Since Debian has it specified as an alternative, I would assume that any
> C compiler which implements those options would be satisfactory.
> Whether cc is a valid choice depends on whether the code will work with
> any such compiler.  If a program requires GCC, then it should specify
> gcc; if any old compiler will work, then cc should be fine.

That fails the reproducable test.

All uploaded packages should always be build with the same compiler,
the debian default gcc, unless a specific compiler is specified in
rules.

So I would say using cc is wrong.

MfG
        Goswin


Reply to: