From dd07ce08a8babd50249220b09d5de989d496d9fdc9417c86aeab89fc8f5a8edf Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 15 May 2023 10:47:41 +0000 Subject: [PATCH] Accepting request 1086892 from home:AndreasStieger:branches:Base:System enable profiling OBS-URL: https://build.opensuse.org/request/show/1086892 OBS-URL: https://build.opensuse.org/package/show/Base:System/gawk?expand=0&rev=100 --- gawk.changes | 5 +++++ gawk.spec | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) 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)