Re: [hackers] [smdev] config.mk: default CC = cc || Hiltjo Posthuma

2015-04-14 Thread Roberto E. Vargas Caballero
> It is just an annoyance on systems where c99 doesn't exist.  This is more
> common than your example.

Uhmmm, you are right, CC by default is c99 in POSIX.

Regards,




Re: [hackers] [smdev] config.mk: default CC = cc || Hiltjo Posthuma

2015-04-14 Thread Dimitris Papastamos
On Tue, Apr 14, 2015 at 01:45:10PM +0200, Roberto E. Vargas Caballero wrote:
> > -#CC = musl-gcc
> > +CC = cc
> 
> cc is the default value of CC, so you don't get anything new with this patch,
> and you create some problems with:

It is just an annoyance on systems where c99 doesn't exist.  This is more
common than your example.

You can still do make CC=tcc.



Re: [hackers] [smdev] config.mk: default CC = cc || Hiltjo Posthuma

2015-04-14 Thread Roberto E. Vargas Caballero
> -#CC = musl-gcc
> +CC = cc

cc is the default value of CC, so you don't get anything new with this patch,
and you create some problems with:

CC=tcc make

(of course you can use make -e, but I don't see the point)

Regards,




[hackers] [smdev] config.mk: default CC = cc || Hiltjo Posthuma

2015-04-14 Thread git
commit 8d07540c417e3a31942028318197c89b640278d5
Author: Hiltjo Posthuma 
Date:   Sun Apr 12 13:42:20 2015 +0200

config.mk: default CC = cc

diff --git a/config.mk b/config.mk
index 78beb10..b1e7ae4 100644
--- a/config.mk
+++ b/config.mk
@@ -4,7 +4,7 @@ VERSION = 0.2.3
 # paths
 PREFIX = /usr/local
 
-#CC = musl-gcc
+CC = cc
 LD = $(CC)
 CPPFLAGS = -D_BSD_SOURCE -D_GNU_SOURCE
 CFLAGS   = -std=c99 -Wall -pedantic $(CPPFLAGS)