Boost logo

Boost-Build :

From: Mark Evans (evans_mark_at_[hidden])
Date: 2006-02-03 08:24:28


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:
  
  rule add-prefix-and-suffix ( specified-name : type ? : property-set )
  {
      local suffix = [ type.generated-target-suffix $(type) : $(property-set) ] ;
      suffix = .$(suffix) ;
      
      local prefix ;
      
      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.
  
  Thanks!
  Mark
  



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