Re: not _that_ fixed....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux