Re: modular php build on unix
| From: | Gergely Madarasz | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: modular php build on unix | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3986@lists.php.net to get a copy of this message | ||
On Wed, 1 Sep 1999, Gergely Madarasz wrote:
> Hello,
>
> I checked php4 to build a debian package from it and I have concerns
> regarding the shared extension build of the packages...
> I see the xml module can be build as a shared extension, but the build
> script builds a libphpext_xml.so.0.0.0 with a soname libphpext_xml.so.0,
> while, I guess, the name of the module should be xml.so and there is no
> need for a soname. This is not a library, to be linked against, just a
> module to be loaded. The flag -avoid-version to libtool will disable the
> version extension in the file generated, but the soname will remain. I
> guess that won't be such a big problem.
Ok, here is a Makefile.am which almost seems to be working for the shared
case... (there is a problem with some 'ln -s' at the end of the compile)
Now the problem remains that libtool builds the shared library even if the
module is statically built into php3 :)
# $Id: Makefile.am,v 1.3 1999/07/24 00:56:56 sas Exp $
phplibdir=$(libdir)/php
SRC=xml.c
INCLUDES=@INCLUDES@ -I@top_srcdir@ -I@top_srcdir@/libzend
noinst_LIBRARIES=libphpext_xml.a
libphpext_xml_a_SOURCES=$(SRC)
phplib_LTLIBRARIES=xml.la
xml_la_SOURCES=$(SRC)
xml_la_LIBADD=@XML_LIBS@
xml_la_LDFLAGS=-avoid-version -module
EXTRA_LIBS=
Greg