]> Pileus Git - ~andy/linux/commit
perf tools: check if -DFORTIFY_SOURCE=2 is allowed
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 17 Feb 2013 15:03:36 +0000 (16:03 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 13 Mar 2013 19:57:27 +0000 (16:57 -0300)
commitd2f32479e5526a1ab3b4e43910fcb279871524ce
tree39c0d91b56d7d783b7b8118c8a246a6c291e90a0
parent5f7439e07822942f32b9e0a66f4a3cc9c3e29e67
perf tools: check if -DFORTIFY_SOURCE=2 is allowed

It seems gcc (4.7.2) defines _FORTIFY_SOURCE internally and becomes
confused when it sees another definition in flags.

For me, build failed like this:

CHK glibc
Makefile:548: *** No gnu/libc-version.h found, please install glibc-dev[el]/glibc-static. Stop.

and only with V=1 it printed:

<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<stdin>:1:0: note: this is the location of the previous definition

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1361113416-8662-1-git-send-email-marcin.slusarz@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile