Comment 10 for bug 1926752

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2023-07-11 08:24 EDT-------
The patches are now committed:
"Improved s390/z13 support from IBM."
https://gmplib.org/repo/gmp/rev/3a1d9af8b317

I've also added the upstream commit as is and added it to
libgmp10/lunar,now 2:6.2.1+dfsg1-1.1ubuntu1 s390x

In order to get use of it, you have to select those optimizations.
As the current gcc ALS is z13, we can just use the z13 code-paths as default by selecting those like this:

in debian/rules:
ifneq (,$(filter $(DEB_HOST_ARCH), mips64 mips64el))
confflags += ABI=64
endif

+ifneq (,$(filter $(DEB_HOST_ARCH), s390x))
+ confflags += MPN_PATH="s390_64/z13 s390_64 generic"
+endif

confflags_ma = $(confflags) $(confflags_build) --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)