-
Notifications
You must be signed in to change notification settings - Fork 1
tutorial on how to compile php into static binary build #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The process is a bit complex, I will try explain here:
#!/bin/bash
echo /usr/bin/musl-gcc $@ >> ~/php_build_gcc.sh
/usr/bin/gcc $@
exit $? I use this script to record all the build command into a shell script, there is
I suggestion disable all extensions when you start. |
i have problem compile openssl,curl into the new php8.0.12 and latest php7 . private message your email so i can drop down more info on the compilation process. |
Anymore details on this @phpstatic I would like to try compiling myself. Could you go into more detail here?
|
thank you for sharing the static binary and explanation .
i am using musl to do static binary build and able to get most of the binary in static build. It is only when i try to compile php using musl gcc that i run into problem. i assume you are using gcc to create these static binary ?
May i know are you able to share tutorial on how to compile php into static binary build and your email contact . i can follow up on question in regard to compilation privately rather post on public message board.
The text was updated successfully, but these errors were encountered: