… | |
… | |
17 | } else { |
17 | } else { |
18 | |
18 | |
19 | $INC = ""; |
19 | $INC = ""; |
20 | $LIBS = ['-lpthread', '-lpthreads', '-lpthreadVC2', '']; |
20 | $LIBS = ['-lpthread', '-lpthreads', '-lpthreadVC2', '']; |
21 | |
21 | |
22 | if ($^O =~ /freebsd/i) { |
22 | if ($^O =~ /bsd/i) { |
23 | print <<EOF; |
23 | print <<EOF; |
24 | |
24 | |
25 | This package seems to deadlock or otherwise misbehave under FreeBSD. As |
25 | If you have problems with deadlocks or crashes on your system, |
26 | documentation on FreeBSD threading is sorely lacking and confusing, I'll |
26 | make sure your perl has been linked with -lpthread (you might try |
27 | just call FreeBSD broken with regards to threading. |
27 | LD_PRELOAD=/path/to/libpthread.so as a workaround). Also, pthread support |
28 | |
28 | under many BSDs is not the best - before reporting a bug in this module, |
29 | If you find out whats wrong, please tell me. |
29 | make sure it's not an OS bug. |
30 | |
|
|
31 | Some people had luck with using OPTIMIZE=-O instead of -O2, so you might |
|
|
32 | want to try that. |
|
|
33 | |
30 | |
34 | EOF |
31 | EOF |
35 | } |
32 | } |
36 | |
33 | |
37 | { |
34 | { |