Re: [PATCH] tools/lib/api: undefine _FORTIFY_SOURCE before setting it

2015-04-20 Thread Bobby Powers
+CC linux-kbuild. Related to this Dirk's work [1]. On Sat, Apr 18, 2015 at 11:05 AM, Jiri Olsa wrote: > On Sat, Apr 18, 2015 at 10:46:20AM -0400, Bobby Powers wrote: >> Some toolchains (like Hardened Gentoo) define _FORTIFY_SOURCE in the >> built-in, default args. This causes perf builds to fai

Re: [PATCH] tools/lib/api: undefine _FORTIFY_SOURCE before setting it

2015-04-18 Thread Jiri Olsa
On Sat, Apr 18, 2015 at 10:46:20AM -0400, Bobby Powers wrote: > Some toolchains (like Hardened Gentoo) define _FORTIFY_SOURCE in the > built-in, default args. This causes perf builds to fail with: > > :0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] > : note: this is the location of the previou

[PATCH] tools/lib/api: undefine _FORTIFY_SOURCE before setting it

2015-04-18 Thread Bobby Powers
Some toolchains (like Hardened Gentoo) define _FORTIFY_SOURCE in the built-in, default args. This causes perf builds to fail with: :0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors To avoid this, u