Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-02-03 08:41:49


Hi Mark,

> The toolset I am creating for a cross-development environment on cygwin
> targeting HP NonStop Kernel system requires that shared libraries be
> generated with "lib" prefix. Is there a way to control the decision on
> whether or not to generate this prefix? This appears to be goverend by
> build/virtual-target.jam as follows:
....
> if [ type.is-derived $(type) LIB ] && [ os.on-unix ]
> && ! [ MATCH ^(lib) : $(specified-name) ]
> {
> prefix = "lib" ;
> }
>
> return $(prefix:E="")$(specified-name)$(suffix:E="") ;
> }
>
> Someone else ran into this problem and ended up having to change the
> rule above.
> (http://archives.free.net.ph/message/20060102.130852.3389a353.en.html)
>
> I'd rather not have to go that route.

I'm afraid that's the only option possible with the current codebase. The code
above is indeed hardcoded because when it was written "lib" on Unix was the
only know usecase. Would you mind filing this as enhancement request in the
issue tracker:

   http://zigzag.cs.msu.su/boost.build

Thanks,
Volodya


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