From cae7e35d7c56062a426e30fe6b4e088d3cfad76b54cd2ebb72cf46eb52743b93 Mon Sep 17 00:00:00 2001
From: Dirk Mueller <dmueller@suse.com>
Date: Fri, 2 Aug 2019 08:28:57 +0000
Subject: [PATCH] Accepting request 720439 from home:marxin:static

Use FAT LTO objects in order to provide proper static library.

OBS-URL: https://build.opensuse.org/request/show/720439
OBS-URL: https://build.opensuse.org/package/show/Base:System/attr?expand=0&rev=51
---
 attr.changes | 5 +++++
 attr.spec    | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/attr.changes b/attr.changes
index a2b49ef..9154988 100644
--- a/attr.changes
+++ b/attr.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Fri Aug  2 06:57:09 UTC 2019 - Martin Liška <mliska@suse.cz>
+
+- Use FAT LTO objects in order to provide proper static library.
+
 -------------------------------------------------------------------
 Tue Sep 11 09:50:05 UTC 2018 - dmueller@suse.com
 
diff --git a/attr.spec b/attr.spec
index 253a0dd..66f1bc6 100644
--- a/attr.spec
+++ b/attr.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package attr
 #
-# 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
@@ -77,6 +77,7 @@ staticallly linking to programs that make use of extended attributes.
 %patch0 -p1
 
 %build
+%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
 %configure \
     --enable-static \
     --disable-silent-rules