From aae9adad64dd3f31020ef45b6b0dc75137fc2bcbbc01813fa5ea341de58b6283 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 23 Mar 2023 09:41:15 +0000 Subject: [PATCH] Accepting request 1073919 from home:marxin:branches:devel:tools:building - Enable LTO (boo#1133277). OBS-URL: https://build.opensuse.org/request/show/1073919 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=141 --- protobuf.changes | 5 +++++ protobuf.spec | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/protobuf.changes b/protobuf.changes index 1dc9707..99ffd20 100644 --- a/protobuf.changes +++ b/protobuf.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 23 09:01:50 UTC 2023 - Martin Liška + +- Enable LTO (boo#1133277). + ------------------------------------------------------------------- Thu Dec 15 16:18:26 UTC 2022 - Dirk Müller diff --git a/protobuf.spec b/protobuf.spec index f35cfa5..8b7cc2e 100644 --- a/protobuf.spec +++ b/protobuf.spec @@ -1,7 +1,7 @@ # # spec file for package protobuf # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -179,12 +179,11 @@ sed -i '/google_test_dir/d' python/setup.py sed -i -e '/env python/d' python/google/protobuf/internal/*.py %build -%define _lto_cflags %{nil} autoreconf -fvi %configure \ --disable-static -make %{?_smp_mflags} +%make_build %if %{with java} pushd java @@ -202,7 +201,7 @@ popd %if %{with check} %check -make %{?_smp_mflags} check +%make_build check %endif %install