Makefile: 2nd go at making CC assignment/check actually work
authorJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2012 20:56:05 +0000 (21:56 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2012 20:56:05 +0000 (21:56 +0100)
This time tested!

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Makefile

index bffa7583cc0a83d78b2dd3930587b23c639c15f5..0db757b0b5fd877ff77d75c073b0688dc4ca45a4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-ifeq ($(CC),)
+ifneq ($(origin CC), environment)
 CC     = gcc
 endif
 DEBUGFLAGS = -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG