Re: not _that_ fixed....
| From: | Pierre Ancelot | Date: | Wed, 27 Oct 2004 01:26:14 +0000 |
| Subject: | Re: not _that_ fixed.... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200392@lists.php.net to get a copy of this message | ||
in fact, i would code it in c++ but the used compiler is gcc... i tried to
change the value CC in makefile but the lib obtained is invalid and is not
working with php.... any idea on this ?
Sorry to bother again :)
On Tuesday 26 October 2004 16:14, Curt Zirzow wrote:
> * Thus wrote Robert Cummings:
> > On Tue, 2004-10-26 at 00:37, Pierre Ancelot wrote:
> > > in fact i got it in the ./configure --help :
> > >
> > > pierre@debian:~/phpsource/php-4.3.9$ ./configure --help | grep -i
> > > spider --enable-spider Enable spider support
> >
> >...
> >
> > That said, if you still wish to compile a shared object module of your
> > extension then you can run this from the PHP source directory (with
> > suitable changes for your extension):
> >
> > cc -fpic -DCOMPILE_DL_INTERJINN=1 \
> > -Iext/interjinn/ -Iinclude -Imain -I. -IZend -ITSRM \
> > -c -o ext/interjinn/interjinn.o ext/interjinn/interjinn.c
> >
> > cc -shared -L/usr/local/lib -rdynamic -o \
> > ext/interjinn/interjinn.so \
> > ext/interjinn/interjinn.o
>
> Actually it gets easier..
>
> cd ext/custommodule/
> phpize
> ./configure --with-custommodule
> make
>
> Now you'll have a custommodule.so available.
>
>
>
> Curt
> --
> Quoth the Raven, "Nevermore."