Accepting request 1248867 from devel:libraries:c_c++

- Manually select the z13/z14 architecture level specific assembly routines
  for s390x and SLFO since GMP lacks fat binary support there and also lacks
  a way to auto-detect the architecture level used at compile-time.
  [jsc#PED-3270]

OBS-URL: https://build.opensuse.org/request/show/1248867
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gmp?expand=0&rev=63
This commit is contained in:
Dominique Leuenberger 2025-02-28 16:38:04 +00:00 committed by Git OBS Bridge
commit a91383d571
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Feb 27 08:25:36 UTC 2025 - Richard Biener <rguenther@suse.com>
- Manually select the z13/z14 architecture level specific assembly routines
for s390x and SLFO since GMP lacks fat binary support there and also lacks
a way to auto-detect the architecture level used at compile-time.
[jsc#PED-3270]
-------------------------------------------------------------------
Tue Feb 27 11:03:46 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package gmp
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -82,6 +82,14 @@ huge numbers (integer and floating point).
%patch -P 2 -p1
%build
# s390x lacks fat binary support and the gmp configury does not figure
# the architecture level enabled by the compiler. For SLFO make it
# use the z13/z14 architecture specific routines.
%ifarch s390x
%if 0%{?suse_version} >= 1600 && !0%{?is_opensuse}
export MPN_PATH="s390_64/z14 s390_64/z13 s390_64 generic"
%endif
%endif
export CFLAGS="%{optflags} -fexceptions"
%configure \
--disable-static \