httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: so modules, libtool and position independent code
Date Thu, 13 Sep 2001 07:22:22 GMT
On Wed, Sep 12, 2001 at 05:27:07PM +0200, Sascha Schumann wrote:
> > First - I don't understand why it works, since libpython is not PIC (-fpic
> > is not used when compiling). From reading what I could find on the
> > subject, it's supposed to crash miserably.
>     You can use non-PIC code in shared libraries with the
>     disadvantage that pages cannot be shared between unrelated
>     processes, because each process needs to maintain its own
>     relocated copy (they should be shared between parent/children
>     though).

Depends on the platform. You cannot link non-PIC code with PIC code on

> > Second - is libtool's refusal to link with non-libtool libraries an issue
> > for other module writers, and what is the recommended way to go around it?
> > The only solution I could think of was not using apxs.
>     Libtool is capable of linking shared libraries against static
>     code since version 1.3d.  Prior to that, there were patches
>     available to add this feature to libtool.

I think it issues a warning and does so only on platforms that allow

albert chin (

View raw message