From: Jens Axboe Date: Thu, 8 Nov 2012 20:56:05 +0000 (+0100) Subject: Makefile: 2nd go at making CC assignment/check actually work X-Git-Tag: fio-2.0.11~17 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7670fce49ede1ff1361f177c26cd2d41621ee081;p=fio.git Makefile: 2nd go at making CC assignment/check actually work This time tested! Signed-off-by: Jens Axboe --- diff --git a/Makefile b/Makefile index bffa7583..0db757b0 100644 --- 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