mpfr 4.0.2-5 (znver1;i686;x86_64;armv7hnl) 2019-7393
9999
| Status | published | ||||||||||||||||||||
| Submitter | nobodydead [@T] gmail.com | ||||||||||||||||||||
| Platform | rolling | ||||||||||||||||||||
| Repository | main | ||||||||||||||||||||
| URL | https://abf.openmandriva.org/build_lists/614637 | ||||||||||||||||||||
| Packages |
|
||||||||||||||||||||
| 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.net | These look ready to move, need to get them out of way of Qt/KF | 2262d 08hrs |
| benbullard79 [@T] cox.net | No Comment. | 2262d 07hrs |