MPIR is built using VC9/VC11 projects files. No patch are necessary but to rename the library to mpir__a.lib. Follow the instructions in the readme.txt in the MPIR sources and build “lib_mpir_p4” to get the static library we use for PHP.
Building for PHP
PHP 5.4 and below requires the VC9 build of the MPIR library.
PHP 5.5 and above requires the VC11 build of the MPIR library.
- cd win/
- 32 bit
- configure --cpu=x86
- 64 bit
- configure --cpu=x86_64
If you plan to run PHP on a specific platform, the MPIR library can use the optimized assembler files. For more information on supported platforms see mpn\README.