|
Boost-Build : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-01-21 22:22:27
"Raoul Gough" <raoulgough_at_[hidden]> writes:
> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:u7kcy2igf.fsf_at_boost-consulting.com...
>> "Raoul Gough" <raoulgough_at_[hidden]> writes:
> [snip]
>> > The change is easy for mingw-tools.jam (just add the option to
>> > IMPLIB_COMMAND), but I'm not sure about gcc-tools.jam, since I
> don't
>> > know if the option is available on platforms other than Win32.
>>
>> Can't you just make it conditional on $(NT)?
>
> Yes, I guess that would be the way to go. I don't really know enough
> about jam to do this with any confidence. The only way I could think
> of would be to introduce a new variable, which is either empty or set
> to enable-auto-image, and include this in the assignment to
> IMPLIB_COMMAND somehow.
That's the usual strategy.
> I've tried doing something like the following *after* the current
> assignment:
>
> if $(NT) {
> # Give the enable-auto-image-base option to the linker as well
> IMPLIB_COMMAND on $(<) = "-Wl,--enable-auto-image-base " +
> IMPLIB_COMMAND ;
^^^^^^^^^^^^^^
Missing $(...) here at least
> }
>
> But this doesn't seem to pick up the previous value. Is this even
> possible? How would a real jam programmer do this kind of thing?
if $(NT)
{
# Give the enable-auto-image-base option to the linker as well
IMPLIB_COMMAND on $(<) += "-Wl,--enable-auto-image-base " ;
}
would be more likely to work.
-- David Abrahams dave_at_[hidden] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution
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