Boost logo

Boost-Build :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2007-09-03 10:12:51

Oliver.Kowalke_at_[hidden] wrote:
>> 1) Building boost libraries
> this one


> Ok - I explain it again - as I do sice may :

No need to be sarcastic, my willingness to help might be affected ;-)

> ( 07 : specifying
> --toolset=gcc would result in linker errors because the gcc.jam did not
> correctly used HPs linker. The current configuration in gcc.jam passes
> options not known by the HP linker!
> I was forced to modify the config files.

When you talk about config files, what do you mean?

a) user-config.jam or
b) gcc.jam

If you mean b) then I have to tell you: This is not a config file. Using
the name config file is likely misleading. This file is part of the
Boost.Build program.

If you mean a) then there is no need to speak about "force" because the
intended use of config files is to be edited by users.

I do not understand this sentence:
> I modified gcc.jam because the only compiler known to compile boost on
> HPUX 11.11 is gcc.

Did you modify the file
a) because you know you need to compile with gnu compiler, but it was
not being called, or
b) the gnu compiler is being called although you need to call aCC ?

In a previous post you told:
> If I put 'import toolset : using ;' into it then on HP/UX for Itanium
> the gcc would also be default but aCC should be.

So I guess you tried to modify gcc.jam in an attempt to use aCC instead
of gcc, yes?

> I can't read about shared libaries build as default option or how to
> change the used linker!

Have you already seen this?

You might also be able to specify aCC here. But I am not sure if this
works. You will need to try.

> I need a documentation which tells me which config file I've to change
> in order to get all possible libaries build as static and shared
> libraries.

Sorry this not generally possible. Compare: if you have a Makefile and
just say make, you will get what is the default. You will need to
request certain targets if you want them. And yes the default might be
platform dependant. Changing this would require contacting every lib
maintainer to ask for a change of default settings. They might or might
not have a reason for not default building a specific variant.

> Currently I get only static libraries on HP/UX 11.11 with gcc!
> On Linux I get static AND shared libraries (gcc)!

You still did not tell me if bjam gcc link=shared worked for you.

> Sorry - I'm feeling like Don Quixote.

What do you think, I am feeling like ? ;-)

My basic question (since I have no experience with HP/UX) is: Is the
compiler/linker toolchain already supported / tested with Boost.Build?
Are you the first one trying this?

If it is untested there might be two cases:

1) You (or someone else) need to add a complete fresh toolset
description into

2) Your toolchain is sufficiently compatible with gcc, i.e. just
different name of compiler and linker: You could be able to configure
this by giving the name of the compiler and options to the linker by
means of your user-config.jam only.

Hmm, the only HP specific compiler I can see in the docs is
"HP C++ Compiler for Tru64 Unix"

I guess this is not the one you are searching for...

Roland aka speedsnail

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