summaryrefslogtreecommitdiff
path: root/README.threads
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-07-31 21:53:54 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-07-31 21:53:54 +0000
commite5e20432e9e03bcbcca94d9d3a505629a0b07975 (patch)
treee4ec7c04cddfbb87ff1f6a76a4d0a2a4b63122ad /README.threads
parent2cc4c2dcb9e95edecb3992eb6ac9c235d8d8157f (diff)
downloadperl-e5e20432e9e03bcbcca94d9d3a505629a0b07975.tar.gz
Make the use64bits and usethreads friendlier/braver;
they no more wimp out if the platform is unknown. On use64bits if gcc used -DUSE_LONG_LONG is added to the ccflags (this dependency on gcc caused a slightly weird reordering of Configure, but things still seem to work.) p4raw-id: //depot/cfgperl@3841
Diffstat (limited to 'README.threads')
-rw-r--r--README.threads28
1 files changed, 11 insertions, 17 deletions
diff --git a/README.threads b/README.threads
index 4ae2f37ae5..b02e607d2b 100644
--- a/README.threads
+++ b/README.threads
@@ -55,27 +55,21 @@ you believe supports POSIX.1c threads then read on. Additional
information may be in a platform-specific "hints" file in the hints/
subdirectory.
-First of all, because threads are such an experimentral feature
-there's a failsafe in Configure that stops unknown platforms
-from using threads. Search for "is not known to support threads".
-About five lines above that is a line that has a list of operating
-system names separated with |-signs. Append your operating system
-(perl -le 'print $^O') to that list.
-
-On other platforms that use Configure to build perl, omit the -d
-from your ./Configure arguments. For example, use:
+On platforms that use Configure to build perl, omit the -d from your
+./Configure arguments. For example, use:
./Configure -Dusethreads
When Configure prompts you for ccflags, insert any other arguments in
-there that your compiler needs to use POSIX threads. When Configure
-prompts you for linking flags, include any flags required for
-threading (usually nothing special is required here). Finally, when
-Configure prompts you for libraries, include any necessary libraries
-(e.g. -lpthread). Pay attention to the order of libraries. It is
-probably necessary to specify your threading library *before* your
-standard C library, e.g. it might be necessary to have -lpthread -lc,
-instead of -lc -lpthread. You may also need to use -lc_r instead
+there that your compiler needs to use POSIX threads (-D_REENTRANT,
+-pthreads, -threads, -pthread, -thread, are good guesses). When
+Configure prompts you for linking flags, include any flags required
+for threading (usually nothing special is required here). Finally,
+when Configure prompts you for libraries, include any necessary
+libraries (e.g. -lpthread). Pay attention to the order of libraries.
+It is probably necessary to specify your threading library *before*
+your standard C library, e.g. it might be necessary to have -lpthread
+-lc, instead of -lc -lpthread. You may also need to use -lc_r instead
of -lc.
Once you have specified all your compiler flags, you can have Configure