HOWTO build a completely static php?
I would like to build a completely static executable for php. What is the easiest way to do this?
A separate, but easier to solve problem, will be to add a postgresql binding to it. The goal is to run it on an Android system as a one-off project.
Thanks in advance.
Bob Smith
Dear Bob Smith,
Quoted 6 lines · Bob Smith
I would like to build a completely static executable for php. What is the easiest way to do this?
A separate, but easier to solve problem, will be to add a postgresql binding to it. The goal is to run it on an Android system as a one-off project.
You don't have to build things statically to make things work in Android. You can just add uClibc or glibc to Android, next to Bionic.
Just last week, Maxime Ripard and myself have helped Karim Yaghmour integrate a root filesystem generated by Buildroot directly into Android, it worked like a charm. Basically, just build a Buildroot system as usual (select a tarball root filesystem image), and then extract this tarball in the root directory of the Android filesystem. Since a Linux filesystem and Android filesystem use completely different paths for the libraries and binaries, it just works without any problem.
Karim has written a small modification to the Android build system to automate the integration of such a Buildroot generated filesystem. He has said he will share this small piece of code, but I know he is busy traveling at the moment, so he might takes a bit of time before it gets published.
Best regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 6 lines · Thomas Petazzoni
Quoted 2 lines · Bob Smith
I would like to build a completely static executable for php. What is the easiest way to do this?
You don't have to build things statically to make things work in Android. You can just add uClibc or glibc to Android, next to Bionic.
D'oh! Right, thanks. I think this is what Karim called a "meld" system.
http://www.opersys.com/downloads/cc-slides/embedded-android/embedded-android-120619.odp
thanks!
Bob Smith