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:
commit
3bf0f807ec
13
floating-point-format-no-lto.patch
Normal file
13
floating-point-format-no-lto.patch
Normal 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=$?
|
@ -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
|
||||
|
||||
|
8
gmp.spec
8
gmp.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# 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)
|
||||
# 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
|
||||
Release: 0
|
||||
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
|
||||
Url: https://gmplib.org/
|
||||
Source0: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz
|
||||
@ -29,6 +29,7 @@ Source2: %{name}.keyring
|
||||
Source3: baselibs.conf
|
||||
Patch0: gmp-noexec.diff
|
||||
Patch1: gmp-6.1.2-conftest.patch
|
||||
Patch2: floating-point-format-no-lto.patch
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: m4
|
||||
BuildRequires: xz
|
||||
@ -71,6 +72,7 @@ huge numbers (integer and floating point).
|
||||
%setup -q
|
||||
%patch0
|
||||
%patch1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fexceptions"
|
||||
|
Loading…
Reference in New Issue
Block a user