Boost logo

Boost-Build :

Subject: Re: [Boost-build] Building boost on Solaris 10 SPARC with gcc: threading problem
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-15 12:16:06


Michael Peltonen wrote:
> As said in the header I'm trying to build Boost on a Solaris 10 SPARC
> machine with gcc 3.4.6, but I get problems with the compiler threading
> flags.
> It tries to use the compiler flag -pthread (as it is in Linux),
> eventhough it should use -pthreads (as it is in Solaris). This makes a
> lot of errors/warnings and the Boost Thread library doesn't compile at
> all, which I definately need.
> So the question goes, where can I change compiler flags in Bjam
> building system? I tried to grep for it, but I didn't find the place
> where to change them. Is there any parameters I can use to tell Bjam
> to use -pthreads instead of -pthread, or can someone point to a place
> where I can modify compiler flags?
> I used a whole day on this and when I didn't manage to solve it with
> the help of Google or trail and error "hacking", I got totally
> frustrated, so all help is very much appreciated!

The function setup-threading in gcc.jam is wrong.
case sunos :
case solaris :

In Christ,
Steven Watanabe

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