Re: [hackers] [sbase] config.mk: make cc the default $CC || Hiltjo Posthuma

From: Dimitris Papastamos <sin_AT_2f30.org>
Date: Tue, 11 Nov 2014 10:05:36 +0000

On Tue, Nov 11, 2014 at 07:39:03AM +0100, k0ga_AT_shike2.com wrote:
>
> > config.mk: make cc the default $CC
>
> >
> > -#CC = gcc
> > -#CC = musl-gcc
> > -LD = $(CC)
> > CPPFLAGS = -D_BSD_SOURCE -D_GNU_SOURCE
> > CFLAGS = -g -std=c99 -Wall -pedantic $(CPPFLAGS)
> > LDFLAGS = -g
> >
> > +#CC = gcc
> > #CC = tcc
> > -#LD = $(CC)
> > +#CC = musl-gcc
> > +CC = cc
> > +LD = $(CC)
>
> If you want to do that, then the only thing you have to do is
> don't assign any value to CC, because cc is the default value.
> If you do in this way then the user can set his prefered
> compiler exporting CC. The same apply to LD, there is
> a default value that is the correct for the system.

I agree on this, I think Hiltjo had some trouble because it
was defaulting to "c99" as opposed to "cc" and that did not
exist on his system.

Hiltjo, can you clarify again?
Received on Tue Nov 11 2014 - 11:05:36 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 11 2014 - 11:12:09 CET