From: Jens Axboe Date: Tue, 14 Aug 2012 12:34:32 +0000 (+0200) Subject: fio Makefile improvement - don't override $(CC) X-Git-Tag: fio-2.0.9~7 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=31dc09d7f3f684fc6b3629235633cff76aca7e85;hp=521da527743088a9bd2ab882f8b64799d49d5848 fio Makefile improvement - don't override $(CC) I tried to build fio 2.0.8 today and found that the Makefile unconditionally sets CC. Since I've only got clang on my FreeBSD box it needs to avoid overriding the default. Use the default system compiler - don't override $(CC) if already set. Signed-off-by: Jens Axboe --- diff --git a/Makefile b/Makefile index 6a41710b..9d3945b3 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CC = gcc +CC ?= gcc DEBUGFLAGS = -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG CPPFLAGS= -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \ $(DEBUGFLAGS)