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.7 by root, Wed Jun 29 15:51:34 2005 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2 2
3use Config; 3use Config;
4 4
5$Config{ccsymbols} =~ /__i386=1/ or print <<EOF; 5$Config{cppsymbols} =~ /__i386=1/ or print <<EOF;
6 6
7WARNING: This module is architecture-dependent and currently only 7WARNING: This module is architecture-dependent and currently only
8 tested on some architectures. If the module (esp. aio_read and 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 9 aio_write) doesn't work, please report this and I'll fix it for
10 you. I promise ;) 10 you. I promise ;)
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} 54}
55 55

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines