From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Tue, 26 Feb 2013 20:07:24 +0100 Subject: [Buildroot] HOWTO build a completely static php? In-Reply-To: <512CF95D.3050202@linuxtoys.org> References: <512CF95D.3050202@linuxtoys.org> Message-ID: <20130226200724.44b6692f@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Bob Smith, On Tue, 26 Feb 2013 10:05:17 -0800, Bob Smith wrote: > 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 -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com