[07/13] vis: Only define CC when not already specified

Message ID 1305985517-3763-7-git-send-email-sven@narfation.org (mailing list archive)
State Accepted, archived
Commit 77217feb174263fd7229c5f70f56ff479eff7ce7
Headers

Commit Message

Sven Eckelmann May 21, 2011, 1:45 p.m. UTC
  It is possible that a build environment specifies the CC different than
gcc (for example gcc-4.6). The Makefile should only set it when the
compiler wasn't explicitely set.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
This patch depends on other patches submitted earlier:
 - vis: Remove obsolete creation of source packages
 - vis: Remove subversion/svk revision information

 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
  

Patch

diff --git a/Makefile b/Makefile
index 5cbff33..2817292 100755
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@  ifndef V
 endif
 endif
 
-CC =		gcc
+CC ?=		gcc
 CFLAGS +=	-pedantic -Wall -W -std=gnu99
 EXTRA_CFLAGS =	-DDEBUG_MALLOC -DMEMORY_USAGE -DREVISION_VERSION=$(REVISION_VERSION)
 LDFLAGS +=	-lpthread