Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-07-14 01:09:10

On Thursday 13 July 2006 21:01, Andreas Fredriksson wrote:
> On 7/13/06, Vladimir Prus <ghost_at_[hidden]> wrote:
> > Python interpreter has almost the same set of functions as Python dynamic
> > library (the Py_* functions). If Python interpreter loads an extension
> > which links to Boost.Python which is linked to Python library, you get
> > two copies of each function. And I have no idea if this is going to work,
> > or create some problems.
> Generally speaking this should be fine; the dynamic linker will detect
> that is already in the ELF image at runtime (the
> Python interpreter is dynamically linked with the Python library) and
> just re-use that shared object.

On my system, Python binary is *not* linked to

        $ ldd `which python` => (0xffffe000) => /lib/tls/i686/cmov/ (0xb7f8c000) => /lib/tls/i686/cmov/ (0xb7f88000) => /lib/tls/i686/cmov/ (0xb7f84000) => /lib/tls/i686/cmov/ (0xb7f5e000) => /lib/tls/i686/cmov/ (0xb7e28000)
        /lib/ (0xb7fba000)

I believe that's intentional, because position independent code (needed when
building .so), is supposed to be slightly slower.

- Volodya

Vladimir Prus
Boost.Build V2:

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at