From 7496ea3e7fb234a1c92067301c028934c325daad Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Thu, 31 Jan 2013 18:37:41 +0100 Subject: [PATCH 1/1] Allow override of CFLAGS If you attempt to specify your own CFLAGS on the command line (such as make CFLAGS="--whatever"), this would prevent -DFIO_VERSION from being added to CFLAGS. This patch uses the override directive to allow the flag to be appended to CFLAGS. Signed-off-by: Jens Axboe --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a4a478d9..45b20e61 100644 --- a/Makefile +++ b/Makefile @@ -177,7 +177,7 @@ FIO-VERSION-FILE: FORCE @$(SHELL) ./FIO-VERSION-GEN -include FIO-VERSION-FILE -CFLAGS += -DFIO_VERSION='"$(FIO_VERSION)"' +override CFLAGS += -DFIO_VERSION='"$(FIO_VERSION)"' .c.o: .depend FORCE $(QUIET_CC)$(CC) -o $@ $(CFLAGS) $(CPPFLAGS) -c $< -- 2.25.1