From dc664ee12621ad7d146ae9bcce92f17bad4c59e8 Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Wed, 14 Oct 2009 15:41:47 -0400 Subject: add -std=gnu99 to compiling Perf uses -std=gnu99 which causes some strange side effects. To keep parse-events.c close to what is in perf, we use the same option. Namely, it makes us typecast the options for "%a" in the sscanf to float. Signed-off-by: Steven Rostedt --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 538406c..a8dbce1 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,10 @@ CC = gcc +EXT = -std=gnu99 CFLAGS = -g -Wall # -O2 INCLUDES = -I. -I/usr/local/include %.o: %.c - $(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@ + $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) $< -o $@ TARGETS = trace-cmd -- cgit v1.2.2