diff options
author | Stig Bakken <ssb@php.net> | 1999-07-21 21:56:25 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 1999-07-21 21:56:25 +0000 |
commit | d9f52fe0a7c48f4536268a6b4374d5debdd73a3d (patch) | |
tree | 776b6913b37e488a1b6a5f5e3430862d25c40abd /ext/xml/xml.c | |
parent | 57323801f87f0481a0eba72c36f6cc182d411168 (diff) | |
download | php-git-d9f52fe0a7c48f4536268a6b4374d5debdd73a3d.tar.gz |
First cut at standard way of making dynamically loadable extensions on UNIX.
Examples on how to test:
./configure --with-xml static
./configure --with-xml=/opt static
./configure --with-xml=shared shared
./configure --with-xml=shared,/opt shared
The difference between these two is that when the extension is shared, it
is not merged into libphpext.a. The shared extension is currently always
built. I can't find a way to do just one or the other with automake/libtool,
if someone has a clever idea, please come forward. :-)
"make install" installs the .so (as well as a lot of other cruft) in
$prefix/lib/php.
Diffstat (limited to 'ext/xml/xml.c')
-rw-r--r-- | ext/xml/xml.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 66ea4a043d..b270adc1ea 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -18,6 +18,12 @@ /* $Id$ */ #define IS_EXT_MODULE + +/* boldly assume that if PIC is defined, we are being compiled dynamically */ +#ifdef PIC +# define COMPILE_DL 1 +#endif + #if COMPILE_DL # if PHP_31 # include "../phpdl.h" |