on Wed May 09 2007, Christopher Cambly
<ccambly-AT-ca.ibm.com> wrote:
> In boost 1.33.1, in the file tools/build/v1/python.jam,
there was a
> section specific to AIX that provided a link option
specifying an
> import list.
>
> else if $(OS) = AIX
> {
> PYTHON_PROPERTIES
> +=
<*><*><linkflags>"-Wl,-bI:$(PYTHON_LI
B_PATH)/python.exp"
>
<*><*><find-library>pthreads ;
> }
>
> There is no equivalent in the python.jam from Boost
Build V2.
Yep. Someone (you?) contacted me a while back claiming that
if I
would just pass the right flag to the linker, I could get
AIX to
behave like any other Unix platform and I wouldn't need
these special
shenanigans. He promised me a patch, but, well, I never got
it.
Unfortunately, these messages seem to have disappeared from
my
electronic record :(
> I have been experimenting with different combinations
to produce a similar behavior from BBv2.
> This is what I came up with, and appears to work.
>
> # On AIX we need Boost.Python and Python
extensions to import symbols from the python
> interpreter
> # since libraries opened with dlopen() do not
inherit symbols from the Python
> interpreter itself
> if $(target-os) = aix
> {
> alias python_for_extensions
> :
> : $(target-requirements)
> :
> : $(usage-requirements)
<linkflags>-bI:$(libraries[1])/python.exp
> ;
> }
>
> I initially tried "$(usage-requirements)
<linkflags>-Wl,-bI:$(libraries)/python.exp" but
that
> gave me
> " -bI:/usr/lib/python.exp
-bI:/usr/lib/python2.4/config/python.exp "
Yeah, nasty. Volodya, is there a way to embed a comma in a
feature
value?
> However, $(usage-requirements)
> <linkflags>-bI:$(libraries[1])/python.exp gave me
what I wanted
> which is -bI:/usr/lib/python2.4/config/python.exp.
>
> Unfortunately, I am all that comfortable with the new
build system
> and hoping for some suggestions
Submit your patch to the tracker at svn.boost.org?
--
Dave Abrahams
Boost Consulting
http://www.boost-cons
ulting.com
Don't Miss BoostCon 2007! ==> http://www.boostcon.com
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
a>
|