From fa7f9637b17664da98066357e4185a063b13f2bed2dbb545e8eff06e5340d4ee Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 15 Sep 2019 07:05:40 +0000 Subject: [PATCH] Accepting request 729961 from home:cgiboudeaux:fat-lto-objects - Use -ffat-lto-objects when building static libraries. OBS-URL: https://build.opensuse.org/request/show/729961 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gflags?expand=0&rev=5 --- gflags.changes | 5 +++++ gflags.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gflags.changes b/gflags.changes index 11ecfdb..410c2f5 100644 --- a/gflags.changes +++ b/gflags.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 10 20:23:51 UTC 2019 - Christophe Giboudeaux + +- Use -ffat-lto-objects when building static libraries. + ------------------------------------------------------------------- Tue Oct 30 10:29:06 UTC 2018 - Jan Engelhardt diff --git a/gflags.spec b/gflags.spec index 04ac1ed..b47ad94 100644 --- a/gflags.spec +++ b/gflags.spec @@ -1,7 +1,7 @@ # # spec file for package gflags # -# 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 @@ -67,6 +67,7 @@ This package contains the static libraries for gflags. %setup -q %build +%global _lto_cflags %{_lto_cflags} -ffat-lto-objects CFLAGS="%{optflags} -pthread" CXXFLAGS="%{optflags} -pthread" export CFLAGS CXXFLAGS