]> xenbits.xensource.com Git - people/liuw/xtf.git/commitdiff
Only set CC if it's not set
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 10 May 2016 11:58:39 +0000 (13:58 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 May 2016 13:06:41 +0000 (14:06 +0100)
This prevents overwriting CC if it's already set on the environment.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
build/common.mk

index 27415082e52af8124989c9425498751a277e2c0d..1120a167641244f09998303bf130770fed672e52 100644 (file)
@@ -1,7 +1,7 @@
 ROOT := $(abspath $(CURDIR)/../..)
 DESTDIR ?= $(ROOT)/dist
 PREFIX ?= $(ROOT)
-CC = gcc
+CC ?= gcc
 
 ALL_CATEGORIES     := special functional xsa utility