What difference "--enable-threads=posix" can make

Rupert Wood me@rupey.net
Thu May 23 02:15:00 GMT 2002


Muhammad Ali wrote:	

> I am building gnu 3.1 on mips-sgi-irix-6.5. I would like to know
> what the difference can be if i use the flag
> "--enable-threads=posix" while running configure for making gnu. And
> if I do not use it what is the difference. Can it make some built in
> features of C++ like streams and string classes thread unsafe. If I
> do not use this.

Exactly that: it defines which thread mechanisms form the 'gthreads'
threading abstraction which is, in turn, used by the C++ and Objective-C
run-time libraries and the central exception handling mechanism in
libgcc (used for C++ and Java at least).

Rup.



More information about the Gcc-help mailing list