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.6 by root, Sat Jan 15 00:05:14 2005 UTC vs.
Revision 1.9 by root, Thu Aug 25 06:04:11 2005 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2 2
3use Config; 3use Config;
4 4
5$Config{ccsymbols} =~ /__i386=1/ or print <<EOF; 5print <<EOF;
6 6
7WARNING: This module is architecture-dependent and currently only 7WARNING: This module is architecture-dependent and will not likely work
8 tested on some architectures. If the module (esp. aio_read and 8 on lesser-used architectures (see Changes). If the module (esp.
9 aio_write) doesn't work, please report this and I'll fix it for 9 aio_read and aio_write) doesn't work, please report this and I'll
10 you. I promise ;) 10 fix it for you. I promise ;)
11 11
12EOF 12EOF
13 13
14$Config{osvers} >= 2.4 or print <<EOF; 14$Config{osvers} >= 2.4 or print <<EOF;
15 15
16WARNING: This module requires 64 bit file offset functionality only found 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, 17 in linux-2.4 and later. You can still compile this module on
18 but it won't run. 18 older linuxes, but it won't run.
19 19
20DEVELOPERS: It is not difficult to get rid of this limitation, ask me and I'll tell 20DEVELOPERS: It is not difficult to get rid of this limitation, ask me and
21 you what you need to change (and test, so I can add it!). 21 I'll tell you what you need to change (and test, so I can add it!).
22 22
23EOF 23EOF
24 24
25my $mm = MM->new({ 25my $mm = MM->new({
26 dist => { 26 dist => {
45# now get rid of -fpic, because gcc can't use syscall'ed closures 45# now get rid of -fpic, because gcc can't use syscall'ed closures
46# from within pic code on x86. 46# from within pic code on x86.
47 47
48use Config; 48use Config;
49 49
50if ($Config{archname} =~ /i[x34567]86/) { 50if ($Config{cppsymbols} =~ /__i386=1/) {
51 for ($mm->{CCDLFLAGS}, $mm->{CCCDLFLAGS}, @{$mm->{RESULT}}) { 51 for ($mm->{CCDLFLAGS}, $mm->{CCCDLFLAGS}, @{$mm->{RESULT}}) {
52 s/\B-f(pic|PIC)\b//g 52 s/\B-f(pic|PIC)\b//g
53 } 53 }
54
55 # Put -O at the front so as not to change any existing optimisation level
56 # Need optimization of some form turned on to inline syscall() so that it
57 # sets the local errno
58 $mm->{OPTIMIZE} = '-O ' . $mm->{OPTIMIZE};
54} 59}
55 60
56$mm->flush; 61$mm->flush;
57 62

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines