On Tue, Nov 11, 2014 at 07:39:03AM +0100, [email protected] 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?
