From 78c5feff88f6eeb415a254cf0260bff1701a2684 Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Sun, 17 Feb 2013 16:03:36 +0100 Subject: [PATCH] --- yaml --- r: 361563 b: refs/heads/master c: d2f32479e5526a1ab3b4e43910fcb279871524ce h: refs/heads/master i: 361561: e9d6831d6a9d5050d0fb727d2c5c9cff6b0f38fc 361559: 6c4964f8da8b908772679e12cf21de6991ee1730 v: v3 --- [refs] | 2 +- trunk/tools/perf/Makefile | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 349f58e41c38..eddb2b4d3d73 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5f7439e07822942f32b9e0a66f4a3cc9c3e29e67 +refs/heads/master: d2f32479e5526a1ab3b4e43910fcb279871524ce diff --git a/trunk/tools/perf/Makefile b/trunk/tools/perf/Makefile index a2108ca1cc17..bb74c79cd16e 100644 --- a/trunk/tools/perf/Makefile +++ b/trunk/tools/perf/Makefile @@ -95,7 +95,7 @@ ifeq ("$(origin DEBUG)", "command line") PERF_DEBUG = $(DEBUG) endif ifndef PERF_DEBUG - CFLAGS_OPTIMIZE = -O6 -D_FORTIFY_SOURCE=2 + CFLAGS_OPTIMIZE = -O6 endif ifdef PARSER_DEBUG @@ -180,6 +180,12 @@ ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -Werror -Wvolatile-register-var,-W CFLAGS := $(CFLAGS) -Wvolatile-register-var endif +ifndef PERF_DEBUG + ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -D_FORTIFY_SOURCE=2,-D_FORTIFY_SOURCE=2),y) + CFLAGS := $(CFLAGS) -D_FORTIFY_SOURCE=2 + endif +endif + ### --- END CONFIGURATION SECTION --- ifeq ($(srctree),)