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

Comparing Linux-AIO/Makefile.PL (file contents):
Revision 1.1 by root, Tue Aug 14 03:18:53 2001 UTC vs.
Revision 1.6 by root, Sat Jan 15 00:05:14 2005 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2 2
3WriteMakefile( 3use Config;
4
5$Config{ccsymbols} =~ /__i386=1/ or print <<EOF;
6
7WARNING: This module is architecture-dependent and currently only
8 tested on some architectures. If the module (esp. aio_read and
9 aio_write) doesn't work, please report this and I'll fix it for
10 you. I promise ;)
11
12EOF
13
14$Config{osvers} >= 2.4 or print <<EOF;
15
16WARNING: This module requires 64 bit file offset functionality only found
17 in linux-2.4 and later You might still compile this module on older linuxes,
18 but it won't run.
19
20DEVELOPERS: It is not difficult to get rid of this limitation, ask me and I'll tell
21 you what you need to change (and test, so I can add it!).
22
23EOF
24
25my $mm = MM->new({
4 dist => { 26 dist => {
5 PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 27 PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
6 COMPRESS => 'gzip -9v', 28 COMPRESS => 'gzip -9v',
7 SUFFIX => '.gz', 29 SUFFIX => '.gz',
8 }, 30 },
9 NAME => "Linux::AIO", 31 NAME => "Linux::AIO",
10 VERSION_FROM => "AIO.pm", 32 VERSION_FROM => "AIO.pm",
11); 33});
12 34
13sub MY::postamble { 35sub MY::postamble {
14 <<EOF; 36 <<EOF;
15 37
16# set \$VERSION in all modules 38# set \$VERSION in all modules
17setver: 39setver:
18 \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm 40 \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm
19 41
20EOF 42EOF
21} 43}
22 44
45# now get rid of -fpic, because gcc can't use syscall'ed closures
46# from within pic code on x86.
23 47
48use Config;
49
50if ($Config{archname} =~ /i[x34567]86/) {
51 for ($mm->{CCDLFLAGS}, $mm->{CCCDLFLAGS}, @{$mm->{RESULT}}) {
52 s/\B-f(pic|PIC)\b//g
53 }
54}
55
56$mm->flush;
57

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines