From e665ba6a07d3d81fe51e6d33c0b1c8adb328df110ceb8590b702351c3dae8f64 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 13 Mar 2023 11:36:46 +0000 Subject: [PATCH] Accepting request 1070626 from home:marxin:branches:devel:libraries:c_c++ - Use -ffloat-store as a fix for excessive precision provided by X87 on i686 target (https://github.com/fmtlib/fmt/issues/3337). OBS-URL: https://build.opensuse.org/request/show/1070626 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=50 --- fmt.changes | 6 ++++++ fmt.spec | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/fmt.changes b/fmt.changes index d471cf1..b77b18d 100644 --- a/fmt.changes +++ b/fmt.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 10 08:14:22 UTC 2023 - Martin Liška + +- Use -ffloat-store as a fix for excessive precision provided + by X87 on i686 target (https://github.com/fmtlib/fmt/issues/3337). + ------------------------------------------------------------------- Sun Aug 28 06:35:23 UTC 2022 - Jan Engelhardt diff --git a/fmt.spec b/fmt.spec index 946afcf..d92426e 100644 --- a/fmt.spec +++ b/fmt.spec @@ -1,7 +1,7 @@ # # spec file for package fmt # -# 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 @@ -50,6 +50,8 @@ Development files for fmt, a formatting library for C++. %autosetup -p1 %build +# X87 fix for excessive precision: https://github.com/fmtlib/fmt/issues/3337 +%global optflags %optflags -ffloat-store %cmake -DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir} %cmake_build