SHA256
1
0
forked from pool/gmp

Accepting request 712776 from devel:libraries:c_c++

- Add floating-point-format-no-lto.patch in order to fix assembler scanning
  (boo#1138809). (forwarded request 712734 from marxin)

OBS-URL: https://build.opensuse.org/request/show/712776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gmp?expand=0&rev=52
This commit is contained in:
Dominique Leuenberger 2019-07-08 13:09:12 +00:00 committed by Git OBS Bridge
commit 3bf0f807ec
3 changed files with 24 additions and 3 deletions

View File

@ -0,0 +1,13 @@
diff --git a/configure b/configure
index 12ddffd..a7890ed 100755
--- a/configure
+++ b/configure
@@ -24563,7 +24563,7 @@ struct foo foo = {
{ '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
};
EOF
-gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
+gmp_compile="$CC $CFLAGS $CPPFLAGS -fno-lto -c conftest.c >&5 2>&1"
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
(eval $gmp_compile) 2>&5
ac_status=$?

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 1 07:48:02 UTC 2019 - Martin Liška <mliska@suse.cz>
- Add floating-point-format-no-lto.patch in order to fix assembler scanning
(boo#1138809).
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 22 15:10:32 UTC 2018 - fvogt@suse.com Thu Feb 22 15:10:32 UTC 2018 - fvogt@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package gmp # spec file for package gmp
# #
# 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -20,7 +20,7 @@ Name: gmp
Version: 6.1.2 Version: 6.1.2
Release: 0 Release: 0
Summary: The GNU MP Library Summary: The GNU MP Library
License: GPL-3.0+ and LGPL-3.0+ License: GPL-3.0-or-later AND LGPL-3.0-or-later
Group: System/Libraries Group: System/Libraries
Url: https://gmplib.org/ Url: https://gmplib.org/
Source0: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz Source0: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz
@ -29,6 +29,7 @@ Source2: %{name}.keyring
Source3: baselibs.conf Source3: baselibs.conf
Patch0: gmp-noexec.diff Patch0: gmp-noexec.diff
Patch1: gmp-6.1.2-conftest.patch Patch1: gmp-6.1.2-conftest.patch
Patch2: floating-point-format-no-lto.patch
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: m4 BuildRequires: m4
BuildRequires: xz BuildRequires: xz
@ -71,6 +72,7 @@ huge numbers (integer and floating point).
%setup -q %setup -q
%patch0 %patch0
%patch1 %patch1
%patch2 -p1
%build %build
export CFLAGS="%{optflags} -fexceptions" export CFLAGS="%{optflags} -fexceptions"