1 | use v5.8.8; |
1 | use 5.008002; |
2 | |
2 | |
3 | use ExtUtils::MakeMaker; |
3 | use ExtUtils::MakeMaker; |
4 | |
4 | |
5 | use Config; |
5 | use Config; |
6 | |
6 | |
… | |
… | |
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 | { |
… | |
… | |
85 | }, |
82 | }, |
86 | NAME => "IO::AIO", |
83 | NAME => "IO::AIO", |
87 | VERSION_FROM => "AIO.pm", |
84 | VERSION_FROM => "AIO.pm", |
88 | INC => $INC, |
85 | INC => $INC, |
89 | LIBS => $LIBS, |
86 | LIBS => $LIBS, |
|
|
87 | EXE_FILES => ["bin/treescan"], |
90 | PM => { |
88 | PM => { |
91 | 'AIO.pm' => '$(INST_LIBDIR)/AIO.pm', |
89 | 'AIO.pm' => '$(INST_LIBDIR)/AIO.pm', |
92 | }, |
90 | }, |
|
|
91 | PREREQ_PM => { |
|
|
92 | "common::sense" => 0, |
|
|
93 | }, |
93 | clean => { FILES => "libeio/config.h libeio/config.log libeio/config.status" }, |
94 | clean => { FILES => "libeio/config.h libeio/config.log libeio/config.status" }, |
94 | }); |
95 | }); |
95 | |
96 | |
96 | $mm->flush; |
97 | $mm->flush; |
97 | |
98 | |