check_default_cc.diff

Checks if the default value for $(CC) is usable. - Terkhen, 2010-09-08 23:25

Download (532 Bytes)

View differences:

scripts/Makefile.def Wed Sep 08 23:13:04 2010 +0200
39 39
SRCZIP         ?= gzip
40 40
BZIP           ?= bzip2
41 41
CC             ?= gcc
42
# If CC has been set to the default implicit value (cc), check if it can be used. Otherwise use a saner default.
43
ifeq "$(origin CC)" "default"
44
	CC=$(shell which cc 2>/dev/null && echo "cc" || echo "gcc")
45
endif
42 46
AWK            ?= awk
43 47
HG             ?= hg
44 48
MAKE           ?= make