diff --git a/expat.changes b/expat.changes index 014519b..6b91c4f 100644 --- a/expat.changes +++ b/expat.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 11 15:02:55 UTC 2017 - mpluskal@suse.com + +- Build with profiling when possible + ------------------------------------------------------------------- Tue Jul 4 14:33:00 UTC 2017 - meissner@suse.com diff --git a/expat.spec b/expat.spec index 65fb3b4..df8165a 100644 --- a/expat.spec +++ b/expat.spec @@ -67,9 +67,16 @@ rm -f examples/*.dsp %build %configure \ - --disable-silent-rules \ - --disable-static -make %{?_smp_mflags} + --disable-silent-rules \ + --disable-static +%if %{do_profiling} + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" LDFLAGS="%{optflags} %{cflags_profile_generate}" check + make clean + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" +%else + make %{?_smp_mflags} CFLAGS="%{optflags}" +%endif %install %make_install