| 17 | |
| 18 | |
| 19 | |
| 20 | === mpir-2.4.0.p2 (Leif Leonhardy, April 4th, 2012) === |
| 21 | #11616 (upgrading MPIR), further fixes: |
| 22 | * Before enabling `-march=native`, minimalistically check whether the |
| 23 | system's assembler also understands the instructions the compiler emits |
| 24 | with that option. (Work-around for e.g. GCC 4.6.3 on MacOS X 10.x and |
| 25 | Intel Core i7-family CPUs with AVX.) |
| 26 | * Do not unconditionally unset `PYTHON`, since Sage (>=5.0.beta10) no longer |
| 27 | pollutes the environment with its package version variables, which previous- |
| 28 | ly confused yasm's `configure`. |
| 29 | * Fix extraction of `__GMP_CC` and `__GMP_CFLAGS` from `gmp.h`, since MPIR |
| 30 | meanwhile defines these to preprocessor variables (rather than literals). |
| 31 | Also don't use `\+` in `sed` patterns, as this is less portable. |
| 32 | * Work around GCC 4.7.0 bug (compilation error) on Linux ia64 (Itanium) by |
| 33 | almost completely disabling optimization on that platform if GCC 4.7.x |
| 34 | is detected. This doesn't hurt much if we later rebuild MPIR with a (non- |
| 35 | broken) GCC from the new GCC spkg. Cf. #12765. |
| 36 | * Do not build the C++ interface and static libraries when bootstrapping the |
| 37 | GCC spkg, i.e. if `SAGE_BUILD_TOOLCHAIN=yes`. (GMP/MPIR is a prerequisite |
| 38 | for it, and MPIR will later get rebuilt with both enabled, with the newly |
| 39 | built GCC.) Cf. #12782. |
| 40 | * Fix a potential race condition in yasm's build by patching the re2c source. |
| 41 | Cf. #11844. |
| 42 | * Add "`patch` loop" to apply any patches (`*.patch`) located in `patches/`. |
| 43 | Currently only the re2c patch matches that; the prepatched header to support |
| 44 | Sun's C compiler is still copied over (and only on SunOS, although it doesn't |
| 45 | do any harm on other platforms). |
| 46 | * Minor clean-up; e.g. redirect error messages and warnings to `stderr`, |
| 47 | quote parameter to `--libdir`, add some comments and messages, also save |
| 48 | user's setting of `LDFLAGS` and `ABI`. |
| 49 | |