- 论坛徽章:
- 0
|
--enable-threads
Specify that the target supports threads. This affects the Objective-C compiler and runtime library, and exception handling for other languages like C++ and Java. On some systems, this is the default.
In general, the best (and, in many cases, the only known) threading model available will be configured for use. Beware that on some systems, GCC has not been taught what threading models are generally available for the system. In this case, --enable-threads is an alias for --enable-threads=single.
--disable-threads
Specify that threading support should be disabled for the system. This is an alias for --enable-threads=single.
--enable-threads=lib
Specify that lib is the thread support library. This affects the Objective-C compiler and runtime library, and exception handling for other languages like C++ and Java. The possibilities for lib are:
aix
AIX thread support.
dce
DCE thread support.
gnat
Ada tasking support. For non-Ada programs, this setting is equivalent to ‘single’. When used in conjunction with the Ada run time, it causes GCC to use the same thread primitives as Ada uses. This option is necessary when using both Ada and the back end exception handling, which is the default for most Ada targets.
mach
Generic MACH thread support, known to work on NeXTSTEP. (Please note that the file needed to support this configuration, gthr-mach.h, is missing and thus this setting will cause a known bootstrap failure.)
no
This is an alias for ‘single’.
posix
Generic POSIX/Unix98 thread support.
posix95
Generic POSIX/Unix95 thread support.
rtems
RTEMS thread support.
single
Disable thread support, should work for all platforms.
solaris
Sun Solaris 2/Unix International thread support. Only use this if you really need to use this legacy API instead of the default, ‘posix’.
vxworks
VxWorks thread support.
win32
Microsoft Win32 API thread support.
nks
Novell Kernel Services thread support. |
|