Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31301 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69017 invoked by uid 1010); 27 Jul 2007 10:56:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 69002 invoked from network); 27 Jul 2007 10:56:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jul 2007 10:56:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:45862] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/F2-42465-46FC9A64 for ; Fri, 27 Jul 2007 06:56:38 -0400 Received: (qmail 18059 invoked from network); 27 Jul 2007 10:56:33 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 27 Jul 2007 10:56:33 -0000 Message-ID: <46A9CF62.3010509@zend.com> Date: Fri, 27 Jul 2007 14:56:34 +0400 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: David Wang CC: Uwe Schindler , internals@lists.php.net References: <1185527744.6559.6.camel@kleinweby-laptop> <46A9BEC4.5040803@zend.com> <000001c7d038$264a54a0$4cf96686@VEGA> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] php5 as universal binary (Mac OS X) From: antony@zend.com (Antony Dovgal) On 27.07.2007 14:47, David Wang wrote: > Isn't an universal binary just two binaries packaged together? Yes. > One has to be compiled for Intel and the other for PowerPC. GCC is able to build both on Intel. > How exactly is this currently being done in a single run on Christian's machine? It should be as easy as CFLAGS="-arch ppc -arch i386", that's it. > Is there a special build tool that runs the compilation twice or a > special compiler that generates two binaries? > > Something tells me that you'd have to know how this tool works and > this would not be an extremely easy thing to fix. > > On 7/27/07, Uwe Schindler wrote: >> The simpliest would be to create a patch that is included *after* the >> configure-generated .h file. I do not exactly now, in which PHP/Zend >> specific .h file the configure generated php_config.h one is included, but >> that would be the place to place the following macro: >> >> #if defined(MACOSX) (I do not know the exact macro for detecting osx) >> # undef WORDS_BIGENDIAN >> # define WORDS_BIGENDIAN __BIG_ENDIAN__ >> #endif >> >> Just an idea. >> Or just update to a newer autoconf version that can detect this (I know >> newer ones do this correctly). But this is not possible for PHP. > -- Wbr, Antony Dovgal