https://github.com/nxtlvlsoftware/minimal-php-build-scripts
https://github.com/nxtlvlsoftware/minimal-php-build-scripts
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nxtlvlsoftware/minimal-php-build-scripts
- Owner: NxtLvLSoftware
- Created: 2020-02-10T10:53:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-16T07:34:54.000Z (over 6 years ago)
- Last Synced: 2025-05-23T06:17:38.902Z (about 1 year ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Minimal PHP Build Scripts
===================
__Scripts used to compile minimal php builds on multiple platforms for extension CI/testing.__
## compile.sh
Bash script used to compile PHP on MacOS and Linux platforms. Make sure you have
``make autoconf automake libtool m4 wget bison g++ cmake``.
### Additional notes
#### Mac OSX (native compile)
- 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` or `mac64` 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 |
### Example:
| Target | Arguments |
| --------------- | ------------------------------------------------------------------ |
| linux64 | ``-t linux64 -j $(nproc) -sz`` |
| mac64 | ``-t mac64 -j $(sysctl -n hw.physicalcpu) -sz`` |
### Common pitfalls
- 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.
## more platforms coming soon
Windows support is planned.
## Support and feature requests
Please submit anything that requires our attention to our [issue tracker](https://github.com/NxtLvLSoftware/minimal-php-build-scripts/issues)
on Github. We will attempt to respond to sensible requests in a reasonable time frame.