lkml.org 
[lkml]   [2010]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] [PERF] (Userspace Tools) Fix a compilation error with -fstack-protector and -Werror
From
The following patch fixes compilation of the perf user-space tools on,
for example, gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) . It should not
break anything else.

Signed-off-by: Brian Gitonga Marete <marete@toshnix.com>
---
tools/perf/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 1950e19..64eb2ea 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -288,7 +288,7 @@ endif
-include feature-tests.mak

ifeq ($(call try-cc,$(SOURCE_HELLO),-Werror -fstack-protector-all),y)
- CFLAGS := $(CFLAGS) -fstack-protector-all
+ CFLAGS := $(CFLAGS) -fstack-protector-all --param ssp-buffer-size=1
endif

--
Brian Gitonga Marete
Toshnix Systems
Tel: +254722151590

\
 
 \ /
  Last update: 2010-10-19 01:27    [W:0.079 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site