From: Jens Axboe Date: Thu, 8 Nov 2012 20:46:03 +0000 (+0100) Subject: Use more portable construct for setting/checking CC X-Git-Tag: fio-2.0.11~18 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=122d4b1cf4989337cc4006bdce8e61ec04b166fd;hp=c5b3adc41e0a91be5c6accdbe6506522ebddfbdd Use more portable construct for setting/checking CC Signed-off-by: Jens Axboe --- diff --git a/Makefile b/Makefile index 7e877fe4..bffa7583 100644 --- 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)