[gccsdk] -pthread confusion
John.Tytgat at aaug.net
Thu Jan 12 19:09:48 PST 2012
In message <811aaf5052.beeb at ron1954.woosh.co.nz>
Ron <beeb at woosh.co.nz> wrote:
> I have noticed previously when using the cross-compiler that -pthread
> gets attached to the compiler string but there is always the reply
> that it is unknown after each use.
> Now I have found a makefile that attaches the -pthread flag as a CFLAG
> /and/ as an LDFLAG.
> Is this flag just a method of compiling or does it effect the
> output code?
We have a complete gcc manual in HTML in !GCC (accessible via !Help). The
2nd last section in that manual is titled 'Option index' where you can find
the explanation on the -pthread option.
This option is a target specific option for SPARC, RS/6000 and IA-64.
It is irrevalant (and hence, unexisting) for the ARM target.
POSIX(ish) pthread support is standard when UnixLib runtime library
is selected, unsupported when the SCL runtime library is used (for obvious
John Tytgat, in his comfy chair at home BASS
John.Tytgat at aaug.net ARM powered, RISC OS driven
More information about the gcc