diff --git a/bison.changes b/bison.changes index 8e938f7..a5c0ef7 100644 --- a/bison.changes +++ b/bison.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 2 09:27:28 UTC 2018 - Martin Pluskal + +- Use profile guided optimization (PGO) when building + ------------------------------------------------------------------- Tue Oct 2 05:28:01 UTC 2018 - sean@suspend.net diff --git a/bison.spec b/bison.spec index 0122099..de7e3e0 100644 --- a/bison.spec +++ b/bison.spec @@ -45,12 +45,21 @@ Bison is a parser generator similar to yacc(1). %setup -q %build -%configure --disable-silent-rules \ - --disable-rpath \ - --docdir=%{_docdir}/%{name} \ - gl_cv_func_printf_directive_n=yes \ - gl_cv_func_printf_infinite_long_double=yes -make %{?_smp_mflags} +%configure \ + --disable-silent-rules \ + --disable-rpath \ + --enable-nls \ + --docdir=%{_docdir}/%{name} \ + gl_cv_func_printf_directive_n=yes \ + gl_cv_func_printf_infinite_long_double=yes +%if 0%{?do_profiling} + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" V=1 + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" check + make %{?_smp_mflags} clean + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" V=1 +%else + make %{?_smp_mflags} CFLAGS="%{optflags}" +%endif %check make %{?_smp_mflags} check