diff --git a/gawk.changes b/gawk.changes index a25b290..3a9060c 100644 --- a/gawk.changes +++ b/gawk.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 13 08:31:16 UTC 2023 - Andreas Stieger + +- enable profiling + ------------------------------------------------------------------- Tue May 9 20:38:51 UTC 2023 - Andreas Stieger diff --git a/gawk.spec b/gawk.spec index d35f63d..46bd95f 100644 --- a/gawk.spec +++ b/gawk.spec @@ -43,7 +43,20 @@ almost completely POSIX 1003.2 compliant. %build %configure -%make_build +export CFLAGS="%{optflags}" +%configure +%if %{do_profiling} + %make_build CFLAGS="$CFLAGS %{cflags_profile_generate}" LDFLAGS="-fprofile-arcs" + %make_build check \ +%if 0%{?qemu_user_space_build} + NEED_PMA= \ +%endif + %{nil} + %make_build clean + %make_build CFLAGS="$CFLAGS %{cflags_profile_feedback}" LDFLAGS="-fprofile-arcs" +%else + %make_build +%endif %check # Disable pma tests when running in linux-user emulation (bsc#1203140)