@@ -304,6 +304,62 @@ OS/2: If you are running Warp3 or Warp4 and have IBM's VisualAge C/C++
304304 in the resulting binaries of PYTHON15.DLL and PYTHON.EXE.
305305
306306
307+ Configuring threads
308+ -------------------
309+
310+ The main switch to configure threads is to run the configure script
311+ (see below) with the --with-thread switch (on DEC, use
312+ --with-dec-threads). Unfortunately, on some platforms, additional
313+ compiler and/or linker options are required. Below is a table of
314+ those options, collected by Bill Janssen. I would love to automate
315+ this process more, but the information below is not enough to write a
316+ patch for the configure.in file, so manual intervention is required.
317+ If you patch the configure.in file and are confident that the patch
318+ works, please send me the patch. (Don't bother patching the configure
319+ script itself -- it is regenerated each the configure.in file
320+ changes.)
321+
322+ Compiler switches for threads
323+ .............................
324+
325+ OS/Compiler/threads Switches for use with threads
326+ (POSIX is draft 10, DCE is draft 4) (1) compile only (2) compile & link
327+
328+ SunOS 5.{1-5}/{gcc,SunPro cc}/solaris (1) -D_REENTRANT (2) -mt
329+ SunOS 5.5/{gcc,SunPro cc}/POSIX (1) -D_REENTRANT
330+ DEC OSF/1 3.x/cc/DCE (1) -D_REENTRANT (2) -threads
331+ 332+ Digital UNIX 4.x/cc/DCE (1) -D_REENTRANT (2) -threads
333+ 334+ Digital UNIX 4.x/cc/POSIX (1) -D_REENTRANT (2) -pthread
335+ 336+ AIX 4.1.4/cc_r/d7 (nothing)
337+ 338+ AIX 4.1.4/cc_r4/DCE (nothing)
339+ 340+ IRIX 6.2/cc/POSIX (nothing)
341+ 342+
343+
344+ Linker (ld) libraries and flags for threads
345+ ...........................................
346+
347+ OS/threads Libraries/switches for use with threads
348+
349+ SunOS 5.{1-5}/solaris -lthread
350+ SunOS 5.5/POSIX -lpthread
351+ DEC OSF/1 3.x/DCE -lpthreads -lmach -lc_r -lc
352+ 353+ Digital UNIX 4.x/DCE -lpthreads -lpthread -lmach -lexc -lc
354+ 355+ Digital UNIX 4.x/POSIX -lpthread -lmach -lexc -lc
356+ 357+ AIX 4.1.4/{draft7,DCE} (nothing)
358+ 359+ IRIX 6.2/POSIX -lpthread
360+ 361+
362+
307363Configuring additional built-in modules
308364---------------------------------------
309365
0 commit comments