diff --git a/gmp.changes b/gmp.changes index 04fad1b..dd820cb 100644 --- a/gmp.changes +++ b/gmp.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Feb 27 08:25:36 UTC 2025 - Richard Biener + +- 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 diff --git a/gmp.spec b/gmp.spec index aa4e51d..a929f13 100644 --- a/gmp.spec +++ b/gmp.spec @@ -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 \