![]() | Compiling PECL extensions statically into PHPYou might find that you need to build a PECL extension statically into your PHP binary. To do this, you'll need to place the extension source under the php-src/ext/ directory and tell the PHP build system to regenerate its configure script.
This will result in the following directory:
From here, force PHP to rebuild the configure script, and then build PHP as normal:
Whether --enable-extname or --with-extname is used depends on the extension. Typically an extension that does not require external libraries uses --enable. To be sure, run the following after buildconf:
| ![]() | ||||