Boost logo

Boost-Build :

Subject: Re: [Boost-build] boost python extensions & <dll-path> on HPUX/AIX ?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-07-13 07:24:53


On Thursday, June 30, 2011 14:24:15 Avi Bahra wrote:
> I have built boost python extension. I have used the <dll-path>
> to embed the path to boost python shared library.
> This avoids users of my extension from having to set
> LD_LIBRARY_PATH when using my extension
>
> python-extension ecflow : [ glob src/*.cpp ]
> ....
>
> : <dll-path>$(PYTHON_INSTALL_DIR)
>
> ;
>
> In my Jamroot.jam:
>
> install install-py
>
> : Pyext//ecflow
> : <install-dependencies>on
>
> <install-type>PYTHON_EXTENSION
> <install-type>SHARED_LIB
> <dll-path>$(PYTHON_INSTALL_DIR)
> <location>$(PYTHON_INSTALL_DIR)
> ;
>
>
> This all works like a charm on Linux:
>
> However on HPUX, I find that embedded path, is always the development path
> and not $(PYTHON_INSTALL_DIR)
> On AIX it seems to be ignored.
>
> Does any one know if <dll-path> feature is known to work on HPUX/AIX ?

Per gcc.init-link-flags (in gcc.jam), it appears that neither supports
rpath at all. I am not sure why you have any rpath on HPUX -- is it
explicitly present in compiler invocation?

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk