|
Boost-Build : |
From: Boris Gubenko (Boris.Gubenko_at_[hidden])
Date: 2007-01-04 15:40:26
Hi Phillip,
using PYTHON_EXTENSION was an excellent suggestion. Thank you. I don't know how
I could overlook this variable.
I've added
type.set-generated-target-suffix PYTHON_EXTENSION : <os>HPUX : sl ;
line to python.jam and verified, that the boost python library tests succeed
with Python 2.4.3 which does not support .so suffix. I'm running full 1.34 tests
now and if everything goes well, will submit a patch.
Thanks again for the excellent suggestion.
Boris
----- Original Message -----
From: "Phillip Seaver" <phil_at_[hidden]>
To: "Boost.Build developer's and user's list" <boost-build_at_[hidden]>
Sent: Saturday, December 23, 2006 9:51 AM
Subject: Re: [Boost-build] controlling suffix of a dynamic library file in BBv2
> Boris Gubenko wrote:
>> David Abrahams suggested to raise this issue on the Boost.Build list.
>>
>> On HP-UX/ia64, Python interpreter prior to Python 2.5 assumes, that
>> dynamic library file has ".sl" suffix.
>>
>> On a Unix system, including HP-UX, Boost.Build -- both BBv1 and BBv2 --
>> creates dynamic libraries with ".so" suffix. As a result, on an HP-UX/ia64
>> system with version of Python prior to 2.5, boost python library tests
>> creating python extension files with ".so" suffix fail because Python
>> interpreter cannot load such files. Renaming extension file from foo.so to
>> foo.sl
>> solves this problem, but this is, obviously, not a good solution.
>>
>> In BBv1, which suffix to use was configurable: there was SUFDLL variable
>> defined in allyourbase.jam depending on platform. Invoking bjam with
>> -sSUFDLL=.sl would override the default ".so" suffix.
>>
>> Does a similar mechanism exist in BBv2? If not, can it be added for the
>> benefit of HP-UX/ia64 customers using Python prior to 2.5?
>>
>> Thanks,
>> Boris
>>
>
> I've never used the python part before, but it looks like you can use
> type.change-generated-target-suffix to change the suffix in your
> Jamroot, user-config.jam, system-config.jam, or someplace else. :-)
>
> import type : change-generated-target-suffix ;
>
> type.change-generated-target-suffix PYTHON_EXTENSION : : sl ;
>
>
> Hope this helps,
>
> Phillip
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>
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