ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro-Multicore/Makefile.PL
(Generate patch)

Comparing Coro-Multicore/Makefile.PL (file contents):
Revision 1.3 by root, Sat Dec 19 23:56:14 2015 UTC vs.
Revision 1.5 by root, Mon Aug 13 10:22:49 2018 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2use Coro::MakeMaker; 2use Coro::MakeMaker;
3 3
4use Canary::Stability Coro::Multicore => 1; 4use Canary::Stability Coro::Multicore => 1, 5.008009;
5 5
6if ($^O eq "MSWin32") { 6if ($^O eq "MSWin32") {
7 # configuration on windows is hardcoded - as always 7 # configuration on windows is hardcoded - as always
8 8
9 print STDERR <<EOF; 9 print STDERR <<EOF;
10 10
11*** 11***
12*** Your platform is not standards compliant. To get this module working, you need to 12*** Your platform is not standards compliant. To get this module working, you need to
13*** download and install win32 pthread (http://sourceware.org/pthreads-win32/) 13*** have the win32 pthread library (http://sourceware.org/pthreads-win32/) and
14*** in /gtk/{lib,include} 14*** the windows sdk or equivalent.
15*** also, the windows SDK is expected to be installed in /sdk
16*** and visual C is expected to be installed in /vc98
17***
18*** Alternatively, set the INC and LIBS environment variables
19*** accordingly before running Makefile.PL, or you can
20*** pass INC and LIBS arguments to Makefile.PL itself.
21*** 15***
22 16
23EOF 17EOF
24 18
25 if ($Config{cc} =~ /(?:^|\\|\/)gcc(?:|.*\.exe)$/) { 19 $INC = "$ENV{INC}";
26 $INC = "$ENV{INC} -I/gtk/include";
27 $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadGC2"]; 20 $LIBS = ["$ENV{LIBS} -lpthread"];
28 } else {
29 $INC = "$ENV{INC} -I/sdk/include -I/vc98/include -I/gtk/include";
30 $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadVC2"];
31 }
32 21
33} else { 22} else {
34 23
35 $INC = ""; 24 $INC = "";
36 $LIBS = ['-lpthread', '-lpthreads', '']; 25 $LIBS = ['-lpthread', '-lpthreads', ''];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines