[mod_python] Performance improvements: dynamic linking?

Jevgenijs Rogovs jevgenijsr at gmail.com
Wed Jan 9 11:33:38 EST 2008


Mateusz,

Thanks, but unfortunately, "make dso" yields tha same huge >4MB
mod_python.so in the end... Any other ideas?

With best regards,
J.R.

On Jan 9, 2008 5:18 PM, Mateusz Korniak <mateusz at ant.gliwice.pl> wrote:

> On Wednesday 09 of January 2008, Jevgenijs Rogovs wrote:
> > You were right, I built mod_python myself, and it is not stripped.
> Here's
> > the output of the file command:
> >
> > ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not
> stripped
> >
> > So, what do I do to strip those symbols? I am building by the book, i.e.
> >
> > ./configure --with-aspx=/path/to/aspx
> > make
>
> make dso ?
>
> > make install
> >
> > Should there be some additional switch added to the configure command,
> or?
>
> $ ls -la /usr/lib/apache/mod_python.so
> -rwxr-xr-x 1 root root 90072 2006-11-17 12:34
> /usr/lib/apache/mod_python.so
> $ file /usr/lib/apache/mod_python.so
> /usr/lib/apache/mod_python.so: ELF 32-bit LSB shared object, Intel 80386,
> version 1 (SYSV), stripped
>
> It is taken from rpm from PLD .spec [1] file.
>
> %build
> %{__aclocal}
> %{__autoconf}
> %configure \
>        --with-apxs=%{apxs}
> %{__make} dso
>
> Linking patch [2] seems to be used also ...
>
> [1]:
> http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/apache-mod_python.spec
> [2]:  $ cat ../SOURCES/apache-mod_python-ldflags.patch
> --- mod_python-3.1.3/configure.in.ldflags
> +++ mod_python-3.1.3/configure.in
> @@ -225,7 +225,7 @@
>     LDFLAGS="${LDFLAGS} -Wl,-framework,Python"
>   fi
>  else
> -  LDFLAGS="${LDFLAGS} -L${PyLIBPL}"
> +  #LDFLAGS="${LDFLAGS} -L${PyLIBPL}"
>   AC_CHECK_LIB(python${PyVERSION}, Py_NewInterpreter,
>              [ PyPYTHONLIBS="-lpython${PyVERSION}" ],
>              [ LDFLAGS="$save_LDFLAGS"
>
> Regards, HiH,
> --
> Mateusz Korniak
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080109/a9dcd8ac/attachment.html


More information about the Mod_python mailing list