Use more portable construct for setting/checking CC
authorJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2012 20:46:03 +0000 (21:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2012 20:46:03 +0000 (21:46 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Makefile

index 7e877fe447e562e7d77d0afecc1a90a2bdec4477..bffa7583cc0a83d78b2dd3930587b23c639c15f5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
-CC     ?= gcc
+ifeq ($(CC),)
+CC     = gcc
+endif
 DEBUGFLAGS = -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG
 CPPFLAGS= -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
        $(DEBUGFLAGS)