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 0a2542844a62..f7cd89622cf4 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -207,7 +207,7 @@ ifndef PERF_DEBUG | |||
207 | CFLAGS_OPTIMIZE = -O6 | 207 | CFLAGS_OPTIMIZE = -O6 |
208 | endif | 208 | endif |
209 | 209 | ||
210 | CFLAGS = $(MBITS) -ggdb3 -Wall -Wextra -std=gnu99 -Werror $(CFLAGS_OPTIMIZE) -fstack-protector-all -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) | 210 | CFLAGS = $(MBITS) -ggdb3 -Wall -Wextra -std=gnu99 -Werror $(CFLAGS_OPTIMIZE) -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) |
211 | LDFLAGS = -lpthread -lrt -lelf -lm | 211 | LDFLAGS = -lpthread -lrt -lelf -lm |
212 | ALL_CFLAGS = $(CFLAGS) | 212 | ALL_CFLAGS = $(CFLAGS) |
213 | ALL_LDFLAGS = $(LDFLAGS) | 213 | ALL_LDFLAGS = $(LDFLAGS) |
@@ -259,6 +259,9 @@ PTHREAD_LIBS = -lpthread | |||
259 | # explicitly what architecture to check for. Fix this up for yours.. | 259 | # explicitly what architecture to check for. Fix this up for yours.. |
260 | SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__ | 260 | SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__ |
261 | 261 | ||
262 | ifeq ($(shell sh -c "echo 'int foo(void) {char X[2]; return 3;}' | $(CC) -x c -c -Werror -fstack-protector-all - -o /dev/null >/dev/null 2>&1 && echo y"), y) | ||
263 | CFLAGS := $(CFLAGS) -fstack-protector-all | ||
264 | endif | ||
262 | 265 | ||
263 | 266 | ||
264 | ### --- END CONFIGURATION SECTION --- | 267 | ### --- END CONFIGURATION SECTION --- |
@@ -353,6 +356,7 @@ LIB_H += util/include/asm/swab.h | |||
353 | LIB_H += util/include/asm/system.h | 356 | LIB_H += util/include/asm/system.h |
354 | LIB_H += util/include/asm/uaccess.h | 357 | LIB_H += util/include/asm/uaccess.h |
355 | LIB_H += perf.h | 358 | LIB_H += perf.h |
359 | LIB_H += util/debugfs.h | ||
356 | LIB_H += util/event.h | 360 | LIB_H += util/event.h |
357 | LIB_H += util/types.h | 361 | LIB_H += util/types.h |
358 | LIB_H += util/levenshtein.h | 362 | LIB_H += util/levenshtein.h |
@@ -378,6 +382,7 @@ LIB_OBJS += util/abspath.o | |||
378 | LIB_OBJS += util/alias.o | 382 | LIB_OBJS += util/alias.o |
379 | LIB_OBJS += util/config.o | 383 | LIB_OBJS += util/config.o |
380 | LIB_OBJS += util/ctype.o | 384 | LIB_OBJS += util/ctype.o |
385 | LIB_OBJS += util/debugfs.o | ||
381 | LIB_OBJS += util/environment.o | 386 | LIB_OBJS += util/environment.o |
382 | LIB_OBJS += util/event.o | 387 | LIB_OBJS += util/event.o |
383 | LIB_OBJS += util/exec_cmd.o | 388 | LIB_OBJS += util/exec_cmd.o |