Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46624 Return-Path: <0xcafefeed@gmail.com> Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68939 invoked from network); 10 Jan 2010 17:24:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2010 17:24:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=0xcafefeed@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=0xcafefeed@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.219 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: 0xcafefeed@gmail.com X-Host-Fingerprint: 209.85.219.219 mail-ew0-f219.google.com Received: from [209.85.219.219] ([209.85.219.219:61894] helo=mail-ew0-f219.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/6E-12956-A4D0A4B4 for ; Sun, 10 Jan 2010 12:24:26 -0500 Received: by ewy19 with SMTP id 19so13437772ewy.1 for ; Sun, 10 Jan 2010 09:24:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=gaAxte4mzEqqLh5r8tnJrJsJVybUVQOv42BMZ0s8g5g=; b=HxP5Tkch0eqvYMnZH1y2E+iLXAq8J6del40uCKcx0hS4upa/IC/ivklhg30ygGp9zu sLAFVX09CbJ5gxlFodkF+ogA83HUI791L926TWWqJ7eJ7sQIBnDN4JND4tUhS0XFKds0 +4/H68S/dJODhOT7w1GUXWZn62HuwvEBfLF/E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=pRl0Byv7n4oI4j3/2Of59sLsxfqvEQbQL8LrQcfv6BwpA+tMoNKje7k3S64TpNBt2H lL593QrVuYC2QmYZGL+QsHu4TcqrUpEq2mNb35v1jUKGRnMY8zk7fT5OaBXU9U8K6zdz OXsQEVNpr6DlH0kFIeRHwITDdwwZI7amgU6xY= MIME-Version: 1.0 Received: by 10.216.89.129 with SMTP id c1mr732368wef.35.1263144262984; Sun, 10 Jan 2010 09:24:22 -0800 (PST) In-Reply-To: <52.8A.12956.057F94B4@pb1.pair.com> References: <4B49AE43.2000201@daylessday.org> <52.8A.12956.057F94B4@pb1.pair.com> Date: Sun, 10 Jan 2010 09:24:22 -0800 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] php for android From: 0xcafefeed@gmail.com (mm w) so why not patching the configure.in ? // give the possibility to add other embedded targets and be able to manage next versions --with-embedded-target=droid-xxxx --with-embedded-ldflags= // toolchain ldflags --with-embedded-cflags= // toolchain cflags --with-embedded-cppflags= // toolchain cppflags --with-embedded-tuningflags= // toolchain tuningflags ecetera why ? redefining CC and LDFLAGS CFLAGS (11 years of experience in toolchains creation, cross compiling... ecetera ) won't work with all cc/ld/libtool versions and it's often a mess when cross compiling wrong symbol catched, from a Mac no problem Apple patched gcc/ld and their libtool to handle that AND IT TOOK A WHILE (4 years) before beeing stable and non buggy, I am not sure about all platform (read quite sure) Best On Sun, Jan 10, 2010 at 7:50 AM, Moshe Doron wrote: > Antony Dovgal wrote: >> >> On 01/10/2010 12:45 AM, Moshe Doron wrote: >>> >>> Quit easy porting, here the instructions: >>> >>> http://www.icomsw.com/~moshe/php-android.php >> >> -CC = gcc >> +CC = /home/git/arm-2009q3/bin/arm-none-linux-gnueabi-gcc >> -CPP = gcc -E >> +CPP = /home/git/arm-2009q3/bin/arm-none-linux-gnueabi-gcc -E >> >> Such kind of changes is not necessary, you can do it with `CC=> gcc> LD= ./configure ...` >> >> If you remove that, there are only two parts that seem to be really >> ARM-specific: >> 1) -export-dynamic -> -all-static >> 2) a patch for zend_float.h >> Both of them are not clear to me, would you care to explain why are they >> needed? >> > > Hello, > > The static compile is due to the fact that in android there is replacment to > the standard libc called "bionic". Since and i haven't yet managed to tell > the CodeSourcery to link against bionic i linked all staticlly. > bionic is something i need to face for allowing the php to interact with the > local apache and for allowing the php to be embeded into the android ndk > framework. I guess there some extra patching will need for it. > > Moshe > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >