From d9f52fe0a7c48f4536268a6b4374d5debdd73a3d Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Wed, 21 Jul 1999 21:56:25 +0000 Subject: 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. --- ext/xml/xml.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ext/xml/xml.c') 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" -- cgit v1.2.1