Boost logo

Boost-Build :

From: Prashant Thakre (prashant.thakre_at_[hidden])
Date: 2007-02-27 06:32:57

Vladimir Prus <ghost <at>> writes:
> I believe that's how it was in Boost.Build V1. I have no experience with HP-
> and therefore have no idea what should be hardcoded, what is sensible default
> and what should be customizable via features.

 acc-tools.jam included with [Boost].[1_33_1] doesn't have "+DD64" and "-mt" as
part of aCC-Link-action{} and actions aCC-C++-action{} by default.

 I was able to build 32/64-bit (single/multi threaded) binaries for
[Boost].[1_33_1] by
 adding following options to acc-tools.jam:-
 ---------------------------------Cut here -------------------------------------
  # architecture/instruction-set/address-model options
 .ARCH = <architecture>ia64 <architecture>native ;
 flags acc CFLAGS $(.ARCH)/<instruction-set>default : +DSnative ;
 flags acc CFLAGS $(.ARCH)/<instruction-set>blended : +DSblended ;
 flags acc CFLAGS $(.ARCH)/<instruction-set>itanium : +DSitanium ;
 flags acc CFLAGS $(.ARCH)/<instruction-set>itanium2 : +DSitanium2 ;
 flags acc CFLAGS $(.ARCH)/<instruction-set>mckinley : +DSitanium2 ;
 flags acc CFLAGS $(.ARCH)/<instruction-set>montecito : +DSmontecito;
 flags acc CFLAGS $(.ARCH)/<address-model>default : +DD64 ;
 flags acc CFLAGS $(.ARCH)/<address-model>32 : +DD32 ;
 flags acc CFLAGS $(.ARCH)/<address-model>64 : +DD64 ;
 flags acc LINKFLAGS $(.ARCH)/<address-model>default : +DD64 ;
 flags acc LINKFLAGS $(.ARCH)/<address-model>32 : +DD32 ;
 flags acc LINKFLAGS $(.ARCH)/<address-model>64 : +DD64 ;
 ---------------------------------Cut here -------------------------------------

 However, the above mentioned method hasn't worked for bjam.v2 on hp-ux(ia64).
 bjam install --variant=release --without-python --toolset=acc
 --prefix="$HOME/RC_1_34_0" --builddir=/tmp --optimization=full
 --threading=single/multi --runtime-link=shared,static
 --architechture=ia64 --instruction-set=itanium2 --address-model=64
1>>build.log 2>>build.log
 I guess bjam.v2 can default to 64-bit build for hp-ux(ia64), but should also
provide an option for 32-bit build.
 Since <threading>multi: -mt; is already present as an option in acc.jam, "-mt"
option should be removed from all actions rules {} i.e. compile and link.
 Btw, is "flags acc CFLAGS" equivalent to "flags.acc.compile OPTIONS" ?

 Please let me know if I should try out something else to achieve this with

> - Volodya

Prashant Thakre

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at