diff mbox

xtf: only set CC if it's not set

Message ID 1462882690-5636-1-git-send-email-roger.pau@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Roger Pau Monné May 10, 2016, 12:18 p.m. UTC
This prevents overwriting CC if it's already set on the environment.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
 build/common.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andrew Cooper May 10, 2016, 1:08 p.m. UTC | #1
On 10/05/16 13:18, Roger Pau Monne wrote:
> 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> and committed.
diff mbox

Patch

diff --git a/build/common.mk b/build/common.mk
index 2741508..1120a16 100644
--- a/build/common.mk
+++ b/build/common.mk
@@ -1,7 +1,7 @@ 
 ROOT := $(abspath $(CURDIR)/../..)
 DESTDIR ?= $(ROOT)/dist
 PREFIX ?= $(ROOT)
-CC = gcc
+CC ?= gcc
 
 ALL_CATEGORIES     := special functional xsa utility