Scripts used to compile minimal php builds on multiple platforms for extension CI/testing.
Bash script used to compile PHP on MacOS and Linux platforms. Make sure you have
make autoconf automake libtool m4 wget bison g++ cmake
.
- Most dependencies can be installed using Homebrew
- You will additionally need
glibtool
(GNU libtool, xcode libtool won't work) - You also MUST specify target as
mac
ormac64
if building for Mac, on Mac.
Script flags | Description |
---|---|
-t | Set target |
-j | Set make threads to # |
-s | Will compile everything statically |
-z | Will enable php ZTS for the build |
Target | Arguments |
---|---|
linux64 | -t linux64 -j $(nproc) -sz |
mac64 | -t mac64 -j $(sysctl -n hw.physicalcpu) -sz |
- Avoid using the script in directory trees containing spaces or any other special characters. Some libraries don't like
trying to be built in directory trees containing spaces, e.g.
/home/user/my folder/pocketmine-mp/
might experience problems.
Windows support is planned.
Please submit anything that requires our attention to our issue tracker on Github. We will attempt to respond to sensible requests in a reasonable time frame.