Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34987 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85466 invoked by uid 1010); 28 Jan 2008 22:36:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85451 invoked from network); 28 Jan 2008 22:36:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2008 22:36:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=pete.klemm@esysr.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=pete.klemm@esysr.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain esysr.com from 207.97.221.91 cause and error) X-PHP-List-Original-Sender: pete.klemm@esysr.com X-Host-Fingerprint: 207.97.221.91 unknown Linux 2.4/2.6 Received: from [207.97.221.91] ([207.97.221.91:46587] helo=server1.abacusmg.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/5C-25507-FE85E974 for ; Mon, 28 Jan 2008 17:36:32 -0500 Received: (qmail 8755 invoked from network); 28 Jan 2008 17:36:29 -0500 Received: from adsl-76-195-227-174.dsl.chcgil.sbcglobal.net (HELO ?192.168.1.99?) (76.195.227.174) by server1.suredoc.com with SMTP; 28 Jan 2008 17:36:26 -0500 Message-ID: <479E58EA.6000406@esysr.com> Date: Mon, 28 Jan 2008 16:36:26 -0600 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: internals@lists.php.net X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Cross Build PHP 5.2.5 From: pete.klemm@esysr.com (Pete Klemm) I am trying to cross compile PHP 5.2.5. I have tried many combinations of parameters to configure, but find that the build keeps wanting to use native tools or link with native libraries. Has anyone been successful in cross compiling for ARM. I intend to use PHP on an embedded web server and would like to tune the PHP build to just bring in the options I need. I call configure with the following arguments: CC="arm-unknown-linux-gnu-gcc" \ CXX="arm-unknown-linux-gnu-g++" \ PREFIX="opt/crosstool/gcc-4.0.2-glibc-2.3.6/arm-unknown-linux-gnu/arm-unknown-linux-gnu" \ RANLIB="arm-unknown-linux-gnu-ranlib" \ LIBS="-L/opt/crosstool/gcc-4.0.2-glibc-2.3.6/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib" \ CFLAGS="-I/opt/crosstool/gcc-4.0.2-glibc-2.3.6/arm-unknown-linux-gnu/arm-unknown-linux-gnu/include -I/opt/crosstool/gcc-4.0.2-glibc-2.3.6/arm-unknown-linux-gnu/include" \ ./configure \ --host=arm-unknown-linux-gnu \ --prefix=/opt/crosstool/gcc-4.0.2-glibc-2.3.6/arm-unknown-linux-gnu/arm-unknown-linux-gnu \ --oldincludedir=/opt/crosstool/gcc-4.0.2-glibc-2.3.6/arm-unknown-linux-gnu/arm-unknown-linux-gnu/include \ --with-libdir=/opt/crosstool/gcc-4.0.2-glibc-2.3.6/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib \ --with-includedir=/opt/crosstool/gcc-4.0.2-glibc-2.3.6/arm-unknown-linux-gnu/arm-unknown-linux-gnu/include \ --disable-ipv6 \ --without-openssl \ --without-curl \ --with-gettext \ --without-kerberos \ --without-ldap \ --disable-mbstring \ --without-mcrypt \ --without-mhash \ --without-mysql \ --enable-sockets \ --without-pdo-sqlite \ --without-sqlite \ --without-xml \ --with-pear=shared,/opt/crosstool/gcc-4.0.2-glibc-2.3.6/arm-unknown-linux-gnu/arm-unknown-linux-gnu \ --enable-libgcc \ --enable-posix Thanks for your help, Pete