将 PECL 扩展库静态编译入 PHP有时可能需要将扩展库静态编译到 PHP 中。这需要将扩展库源程序放入 php-src/ext/ 目录中去并告诉 PHP 编译系统来生成其配置脚本。
这将产生以下目录:
此时强制 PHP 重新生成配置脚本,然后正常编译 PHP:
是否用 --enable-extname 或 --with-extname 取决于扩展库。通常不需要外部库文件的扩展库使用 --enable。要确认的话,在 buildconf 之后运行:
add a note
User Contributed Notes
There are no user contributed notes for this page. | ||||||