From 73171aa2e86cebe32ce4952435deecaab7c93ba17bd30a50e19c2ff3eb3e4830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 11 Jul 2017 20:45:24 +0000 Subject: [PATCH] Accepting request 509510 from home:pluskalm:branches:devel:libraries:c_c++ - Build with profiling when possible OBS-URL: https://build.opensuse.org/request/show/509510 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/expat?expand=0&rev=59 --- expat.changes | 5 +++++ expat.spec | 13 ++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) 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