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

From: <k0ga_AT_shike2.com>
Date: Tue, 11 Nov 2014 07:39:03 +0100

> 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.


Regards,
Received on Tue Nov 11 2014 - 07:39:03 CET

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