When compiling PHP, each extension and library has dependencies, which may be required or optional. You can choose whether to include these optional dependencies.
For example, when compiling the gd
extension under Linux,
the zlib,libpng
libraries and the zlib
extension are forced to be compiled,
while the libavif,libwebp,libjpeg,freetype
libraries are optional libraries and will not be compiled by default
unless specified by the --with-libs=avif,webp,jpeg,freetype
option.
bin/spc build redis,igbinary
.--with-libs=XXX
option.bin/spc build redis --with-suggested-exts
.--with-suggested-libs
.