Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 947 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 947 Bytes

MPIR

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.

To build an ASM optimized version, you will have to install Yasm assembler. Complete instructions are available here.

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
  • building
  • make
  • OR
  • make.vc11

NOTE

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.