From e5e20432e9e03bcbcca94d9d3a505629a0b07975 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Sat, 31 Jul 1999 21:53:54 +0000 Subject: 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 --- README.threads | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) (limited to 'README.threads') 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 -- cgit v1.2.1