Move EXTRA_CFLAGS into %{perf_make}

This commit is contained in:
Kyle McMartin 2011-11-16 14:35:06 -05:00
parent a770668d85
commit c8de25547e
1 changed files with 2 additions and 2 deletions

View File

@ -1579,9 +1579,9 @@ BuildKernel %make_target %kernel_image smp
%endif
%global perf_make \
make %{?_smp_mflags} -C tools/perf -s V=1 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix}
make %{?_smp_mflags} -C tools/perf -s V=1 HAVE_CPLUS_DEMANGLE=1 EXTRA_CFLAGS="-Wno-error=array-bounds" prefix=%{_prefix}
%if %{with_perf}
%{perf_make} EXTRA_CFLAGS="-Wno-error=array-bounds" all
%{perf_make} all
%{perf_make} man || %{doc_build_fail}
%endif