From b65758b5182f98860cc9f03ae2a3c3bb48dcc006c6edb688aca25410d1a83bb3 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 13 Aug 2019 13:58:33 +0000 Subject: [PATCH] - Enable profile guided optimization OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmd?expand=0&rev=10 --- libmd.changes | 5 +++++ libmd.spec | 14 +++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/libmd.changes b/libmd.changes index 170faac..bf41a6a 100644 --- a/libmd.changes +++ b/libmd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 13 13:54:43 UTC 2019 - Martin Pluskal + +- Enable profile guided optimization + ------------------------------------------------------------------- Fri Dec 14 14:53:10 UTC 2018 - Martin Pluskal diff --git a/libmd.spec b/libmd.spec index 6b9212b..c0747c1 100644 --- a/libmd.spec +++ b/libmd.spec @@ -1,7 +1,7 @@ # # spec file for package libmd # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -64,7 +64,15 @@ Digests supported: MD2/4/5, RIPEMD160, SHA1, SHA2-256/384/512. %configure \ --disable-static \ --disable-silent-rules -make %{?_smp_mflags} + +%if %{do_profiling} + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" + make check %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" + make %{?_smp_mflags} clean + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" +%else + make %{?_smp_mflags} %{addopts} +%endif %install %make_install @@ -86,6 +94,6 @@ make %{?_smp_mflags} check %{_includedir}/* %{_libdir}/%{name}.so %{_libdir}/pkgconfig/libmd.pc -%{_mandir}/man3/*.3%{ext_man} +%{_mandir}/man3/*.3%{?ext_man} %changelog