| 1 |
Ensure that GMP is built for a generic CPU on x86 |
| 2 |
|
| 3 |
While GMP supports fat builds on x86 that adapt to the CPU's |
| 4 |
capabilities, by default it builds for the CPU of the builder. |
| 5 |
Running that binary on an older CPU then can fail. |
| 6 |
--- gmp-6.2.0/config.guess~ 2020-09-02 19:23:01.817510842 +0200 |
| 7 |
+++ gmp-6.2.0/config.guess 2020-09-02 19:24:55.742325907 +0200 |
| 8 |
@@ -1029,6 +1029,12 @@ |
| 9 |
virtualisers allow guests to set a broken state. */ |
| 10 |
suffix = "noavx"; |
| 11 |
|
| 12 |
+ if (cpuid_64bit) { |
| 13 |
+ modelstr="x86_64"; |
| 14 |
+ } else { |
| 15 |
+ modelstr="pentium"; |
| 16 |
+ } |
| 17 |
+ suffix=""; |
| 18 |
printf ("%s%s", modelstr, suffix); |
| 19 |
return 0; |
| 20 |
} |