Re: Compiling PHP as a NLM
| From: | Davin Thompson | Date: | Wed, 25 Apr 2001 19:13:31 +0000 |
| Subject: | Re: Compiling PHP as a NLM | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-52421@lists.php.net to get a copy of this message | ||
actually, I am using GCC.... here is a page that may be of some interest
to you....
http://www.penguin.cz/~mhi/nlm/NLM-HOWTO/NLM-HOWTO.html
I finaly figured out that I could set all the options I needed in the
file "config_vars.mk", now i am fighting with POSIX.... it
does not want to die....
Matt White wrote:
Davin;
I've been wanting to do this for a while (compile PHP as an Apache/NetWare
module). If you need help, please let me know. I don't have a NetWare compiler,
but I've been needing a reason to get one.
The flags that are being passed into GCC control the way it compiles
(In order... All warnings, optimize to level two, include debug symbols,
use /usr/nwsdk/include as a include path, don't use the standard includes,
don't use the built-in functions, and pack structs).
If you're not using GCC (or are you?), you'll need to set those flags
in your compiler.
- Matt
>>> Davin Thompson <dave@marysville.k12.mi.us> 04/25/01 01:01PM >>>
I am currently attempting to compile PHP as an NLM. Unfortunately,my
programming skills fall short of the task, but I am wading my way throughit.
What I am currently stuck on is where in the php4 configure script(if this
is the right place to do it at) should I add the following tohave it passed
to gcc as it compiles it?
CFLAGS = -Wall -O2 -g -I/usr/nwsdk/include/ -nostdinc -fno-builtin
-fpack-struct
Im not sure what other problems I may run into down the road, but Ihave
made it this far at least.. Any help anyone could providewould be immensely
appreciated
Thanks,
Davin Thompson
dave@marysville.k12.mi.us-- PHP Development Mailing List To unsubscribe,
e-mail: php-dev-unsubscribe@lists.php.netFor additional commands, e-mail:
php-dev-help@lists.php.netTo contact the list administrators, e-mail: php-list-admin@lists.php.net
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net