diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 0056405e4c93..8608c06f806e 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -166,7 +166,12 @@ endif | |||
166 | 166 | ||
167 | # CFLAGS and LDFLAGS are for the users to override from the command line. | 167 | # CFLAGS and LDFLAGS are for the users to override from the command line. |
168 | 168 | ||
169 | CFLAGS = $(M64) -ggdb3 -Wall -Wextra -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -std=gnu99 -Wdeclaration-after-statement -Werror -O6 | 169 | # |
170 | # Include saner warnings here, which can catch bugs: | ||
171 | # | ||
172 | EXTRA_WARNINGS = -Wcast-align -Wformat=2 -Wshadow -Winit-self -Wpacked -Wredundant-decls -Wstack-protector -Wstrict-aliasing=3 -Wswitch-default -Wswitch-enum -Wno-system-headers -Wundef -Wvolatile-register-var -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -Wdeclaration-after-statement | ||
173 | |||
174 | CFLAGS = $(M64) -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6 $(EXTRA_WARNINGS) | ||
170 | LDFLAGS = -lpthread -lrt -lelf -lm | 175 | LDFLAGS = -lpthread -lrt -lelf -lm |
171 | ALL_CFLAGS = $(CFLAGS) | 176 | ALL_CFLAGS = $(CFLAGS) |
172 | ALL_LDFLAGS = $(LDFLAGS) | 177 | ALL_LDFLAGS = $(LDFLAGS) |