aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile7
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
208endif 208endif
209 209
210CFLAGS = $(MBITS) -ggdb3 -Wall -Wextra -std=gnu99 -Werror $(CFLAGS_OPTIMIZE) -fstack-protector-all -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) 210CFLAGS = $(MBITS) -ggdb3 -Wall -Wextra -std=gnu99 -Werror $(CFLAGS_OPTIMIZE) -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS)
211LDFLAGS = -lpthread -lrt -lelf -lm 211LDFLAGS = -lpthread -lrt -lelf -lm
212ALL_CFLAGS = $(CFLAGS) 212ALL_CFLAGS = $(CFLAGS)
213ALL_LDFLAGS = $(LDFLAGS) 213ALL_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..
260SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__ 260SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__
261 261
262ifeq ($(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
264endif
262 265
263 266
264### --- END CONFIGURATION SECTION --- 267### --- END CONFIGURATION SECTION ---
@@ -353,6 +356,7 @@ LIB_H += util/include/asm/swab.h
353LIB_H += util/include/asm/system.h 356LIB_H += util/include/asm/system.h
354LIB_H += util/include/asm/uaccess.h 357LIB_H += util/include/asm/uaccess.h
355LIB_H += perf.h 358LIB_H += perf.h
359LIB_H += util/debugfs.h
356LIB_H += util/event.h 360LIB_H += util/event.h
357LIB_H += util/types.h 361LIB_H += util/types.h
358LIB_H += util/levenshtein.h 362LIB_H += util/levenshtein.h
@@ -378,6 +382,7 @@ LIB_OBJS += util/abspath.o
378LIB_OBJS += util/alias.o 382LIB_OBJS += util/alias.o
379LIB_OBJS += util/config.o 383LIB_OBJS += util/config.o
380LIB_OBJS += util/ctype.o 384LIB_OBJS += util/ctype.o
385LIB_OBJS += util/debugfs.o
381LIB_OBJS += util/environment.o 386LIB_OBJS += util/environment.o
382LIB_OBJS += util/event.o 387LIB_OBJS += util/event.o
383LIB_OBJS += util/exec_cmd.o 388LIB_OBJS += util/exec_cmd.o