From b2db316cc6d55e6608c295818d4ce2d038e15334 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Tue, 4 Sep 2012 09:53:36 +0100 Subject: [PATCH] Ensure CC is overridden (but only) if default var is in use. --- support/configure.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/support/configure.inc b/support/configure.inc index 581ade4d..736a6139 100644 --- a/support/configure.inc +++ b/support/configure.inc @@ -388,7 +388,9 @@ ROOTDIR ?= ${ROOTDIR} BUILDDIR ?= ${ROOTDIR}/build.${PLATFORM} OSENV ?= ${OSENV} ARCH ?= ${ARCH} -CC ?= ${CC} +ifeq ($(origin CC),default) +CC = ${CC} +endif PYTHON ?= ${PYTHON} CFLAGS += ${CFLAGS} LDFLAGS += ${LDFLAGS}