note 45180 deleted from ref.xslt by sobak
| From: | sobak@php.net | Date: | Tue, 22 Nov 2016 03:35:37 +0000 |
| Subject: | note 45180 deleted from ref.xslt by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207375@lists.php.net to get a copy of this message | ||
Note Submitter: arossato at istitutocolli dot org
----
It is possible to create the xslt extension as a shared object module statically linked with salbot
and expat (I needed it for a project hosted in sourceforge where the sablot library is available).
Compile the module as usual:
cd ext/xslt
phpize
./configure --enable-module=so --enable-xslt=shared --with-xslt-sablot --with-expat
make
Then create a statically linked module:
gcc -Wl,-Bstatic -shared xslt.lo sablot.lo -o xslt.so /usr/local/lib/libsablot.a
/usr/local/lib/libexpat.a --static-libgcc
change /usr/local/lib/libsablot.a and /usr/local/lib/libexpat.a according to the right path on your
system.
You're done!
My xslt.so is 5.2M...