Subject: Re: [PATCH [iputils] 4/5] fix handling of CFLAGS

From: Mike Frysinger <[email-masked]>
Date: Sat, 19 Apr 2014 23:01:55 -0400

On Sat 19 Apr 2014 20:55:17 David Heidelberger wrote:
> I'd like to set CC if is unset, check this patch, if it look sane for
> you :)
> https://github.com/iputils/iputils/commit/77ab88974eb4424620e4caa1dcd4bebe02
> 0a3b4e

unfortunately that won't do anything.  make provides a default CC so that code 
will effectively never get used.

you could just delete the line.  realistically, the default (cc) is going to 
be gcc on any system where this code is built.

alternatively, you can use the pattern:
ifeq ($(origin CC),default)
CC = gcc
endif
-mike