On 03/06/2012 04:43, Hans-Peter Nilsson wrote: > On Fri, 18 May 2012, Ralf Corsepius wrote: >> On 05/18/2012 09:24 AM, Sebastian Huber wrote: >>> Hi, >>> >>> if I run the ARM GCC test suite for C and C++ with the arm-rtemseabi4.11 >>> target, then I get several unexpected errors due to: >>> >>> gcc/testsuite/gcc/gcc.log:xgcc: error: unrecognized command line option >>> '-pthread' >>> gcc/testsuite/g++/g++.log:g++: error: unrecognized command line option >>> '-pthread' >>> >>> The -pthread option is not necessary in RTEMS for the pthread API. I >>> don't think that a special case in the test suite is desirable, thus we >>> should add a dummy -pthread option to the RTEMS target configurations. >>> Is this possible? In which file do I have to look for this? >> I am not sure, but AFAICT, -pthread is Linux-specific. > > No, it's the canonical multi-os option to enable pthreads, as > generic as it gets.
According to the manual(*), it's a machine-dependent option for RS6000 and Solaris 2 only! cheers, DaveK -- (*) - http://gcc.gnu.org/onlinedocs/gcc-4.7.0/gcc/Option-Summary.html#Option-Summary