Re: php5 as universal binary (Mac OS X)
| From: | Antony Dovgal | Date: | Fri, 27 Jul 2007 10:31:41 +0000 |
| Subject: | Re: php5 as universal binary (Mac OS X) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-31298@lists.php.net to get a copy of this message | ||
On 27.07.2007 14:23, 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__ #endifI'm not completely sure it's ok when you're NOT compiling a universal binary. Also the __BIG_ENDIAN__ constant my not exist IIRC. But the main reason of course is the fact that the patch I use works just fine and I'm not relly interested in debugging something that isn't broken for me. If you are - feel free to spend some time on this issue, I'd help you where I can. -- Wbr, Antony Dovgal