note 44854 added to install.macosx
| From: | andreas at fink dot org | Date: | Wed, 18 Aug 2004 07:01:09 +0000 |
| Subject: | note 44854 added to install.macosx | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74865@lists.php.net to get a copy of this message | ||
To build on MacOS X 10.3.5 set the environment variable CFLAGS in the following way (depending on
your shell)
setenv CFLAGS "-DBIND_8_COMPAT=1 -DEAPI -O3"
export CFLAGS="-DBIND_8_COMPAT=1 -DEAPI -O3"
Then launch configure with the options:
./configure --prefix=/usr --mandir=/usr/share/man ....
The -DBIND_8_COMPAT=1 gets you over a problem in the DNS files because MacOS X has definitions for
Bind9 and PHP expects Bind8 definitions. -DEAPI is needed if you build it for Apache 1.3.31. -O3
enables the gcc optimizer.
You can also add one of the following lines to your CFLAGS depending on the CPU you use to further
improve speed:
-mcpu=G3 -mtune=G3
-mcpu=G4 -mtune=G4
-mcpu=G5 -mtune=G5
----
Manual Page -- http://www.php.net/manual/en/install.macosx.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44854
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44854&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44854&report=yes
Search -- http://master.php.net/manage/user-notes.php