Boost logo

Boost-Build :

From: Robert Ramey (Ramey_at_[hidden])
Date: 2005-01-31 19:02:51


OK - I "handled" it. Basically I inhibited DLL build for metro-werks code
warrior. A blunt instrument and I think there is a more generic way to do
it but there it is. I've checked in the updated Jamfiles for library build
and test. I think this will permit testing to proceed.

Robert Ramey

Aleksey Gurtovoy wrote:
> Folks,
>
> Could somebody please help us with this:
>
> Robert Ramey writes:
>> Here is what I believe is the problem. I'm not sure how to fix it
>> and would appreciate any help.
>>
>> The DLL version of the serialization library specifies as a
>> requirement that the build be done with <runtime-link>dynamic .
>>
>> boost-base.jam contains the following:
>>
>> # If the toolset matches the given regex pattern, modify the
>> # subvariant-path and properties for static linking
>> rule force-NT-static-link ( pattern : toolset : subvariant-path
>> properties * )
>> {
>> if $(NT) && [ MATCH $(pattern) : $(toolset) ]
>> {
>> properties =
>> [ difference $(properties) : <runtime-link>dynamic ]
>> <runtime-link>static
>> ;
>> }
>>
>> return $(subvariant-path) $(properties) ;
>> }
>>
>> # Stick this rule name in your requirements if you are building code
>> # which requires locale support. It handles the metrowerks-specific
>> # case that locale support demands the static version of the runtime
>> # library.
>> rule std::locale-support ( toolset variant : subvariant-path
>> properties * ) {
>> return [
>> force-NT-static-link .*(metrowerks|cwpro|cw).*
>> : $(toolset) : $(subvariant-path) $(properties)
>> ] ;
>> }
>>
>> So - with code view we have the situation where by
>> <runtime-link>static and <runtime-link>dynamic are simultaneously
>> required. Upon detecting this - bjam aborts.
>>
>> I'm not really sure what to do about this. I believe this problem
>> will occur for any library which builds a DLL and requires locale
>> support.
>>
>> Any help suggestions would be appreciated.
>>
>
> ?
>
> TIA,

 


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