mpfr 4.0.2-5 (znver1;i686;x86_64;armv7hnl) 2019-7393
9999

Submitter nobodydead [@T] gmail.com
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/614637
Packages
lib64mpfr6-4.0.2-5.znver1.binary
lib64mpfr6-debuginfo-4.0.2-5.znver1.debuginfo
lib64mpfr-devel-4.0.2-5.znver1.binary
lib64mpfr-static-devel-4.0.2-5.znver1.binary
mpfr-4.0.2-5.znver1.source
libmpfr6-4.0.2-5.i686.binary
libmpfr6-debuginfo-4.0.2-5.i686.debuginfo
libmpfr-devel-4.0.2-5.i686.binary
libmpfr-static-devel-4.0.2-5.i686.binary
mpfr-4.0.2-5.i686.source
lib64mpfr6-4.0.2-5.x86_64.binary
lib64mpfr6-debuginfo-4.0.2-5.x86_64.debuginfo
lib64mpfr-devel-4.0.2-5.x86_64.binary
lib64mpfr-static-devel-4.0.2-5.x86_64.binary
mpfr-4.0.2-5.x86_64.source
libmpfr6-4.0.2-5.armv7hnl.binary
libmpfr6-debuginfo-4.0.2-5.armv7hnl.debuginfo
libmpfr-devel-4.0.2-5.armv7hnl.binary
libmpfr-static-devel-4.0.2-5.armv7hnl.binary
mpfr-4.0.2-5.armv7hnl.source
Build Date 2019-10-09 14:06:18 +0000 UTC
Last Updated 2019-10-12 10:31:31.851127026 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary 82fe15ae7bd5df671a1fe3bbc52718ebbaa77aa6

commit 82fe15ae7bd5df671a1fe3bbc52718ebbaa77aa6
Author:     Tomasz PaweĊ‚ Gajc <tpgxyz@gmail.com>
AuthorDate: Wed Oct 9 14:51:21 2019 +0200
Commit:     GitHub <noreply@github.com>
CommitDate: Wed Oct 9 14:51:21 2019 +0200

    fiddle a little bit with LTO
---
 mpfr.spec | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/mpfr.spec b/mpfr.spec
index 6099923..3ac5140 100644
--- a/mpfr.spec
+++ b/mpfr.spec
@@ -4,6 +4,10 @@
 %define statname %mklibname %{name} -d -s
 %bcond_with crosscompile
 
+# (tpg) configure script is broken when LTO is used
+# so disable it and push LTO at make_build stage
+%define _disable_lto 1
+
 # (tpg) optimize it a bit
 %global optflags %optflags -O3
 
@@ -13,14 +17,13 @@
 Summary:	Multiple-precision floating-point computations with correct rounding
 Name:		mpfr
 Version:	4.0.2
-Release:	4
+Release:	5
 License:	LGPLv3+
 Group:		System/Libraries
 Url:		http://www.mpfr.org/
 Source0:	http://www.mpfr.org/mpfr-current/mpfr-%{version}.tar.xz
 Source1:	%{name}.rpmlintrc
 Patch0:		https://www.mpfr.org/mpfr-4.0.2/patch01
-Patch1:		floating-point-format-no-lto.patch
 BuildRequires:	gmp-devel
 BuildRequires:	autoconf-archive
 
@@ -91,7 +94,9 @@ if [ "$?" != '0' ]; then
 	exit 1
 fi
 
-%make_build
+# (tpg) configure script is sensitive on LTO so disable it and re-enable on make stage
+%make_build CFLAGS="%{optflags} -flto" CXXFLAGS="%{optflags} -flto" LDFLAGS="%{ldflags} -flto"
+
 export LD_LIBRARY_PATH="%{buildroot}%{_libdir}"
 # (tpg) 2019-10-09 one test fail so let's move on
 #.. contents:: :depth: 2
@@ -137,7 +142,8 @@ if [ "$?" != '0' ]; then
 	exit 1
 fi
 
-%make_build
+# (tpg) configure script is sensitive on LTO so disable it and re-enable on make stage
+%make_build CFLAGS="%{optflags} -flto" CXXFLAGS="%{optflags} -flto" LDFLAGS="%{ldflags} -flto"
 
 %install
 %make_install
Not Available
benbullard79 [@T] cox.netThese look ready to move, need to get them out of way of Qt/KF5d 21hrs
benbullard79 [@T] cox.netNo Comment.5d 21hrs