--- Linux-AIO/Makefile.PL 2004/07/18 10:56:50 1.4 +++ Linux-AIO/Makefile.PL 2005/08/25 06:04:11 1.9 @@ -2,23 +2,23 @@ use Config; -$Config{ccsymbols} =~ /__i386=1/ or print <= 2.4 or print <{CCDLFLAGS}, $mm->{CCCDLFLAGS}, @{$mm->{RESULT}}) { - s/\B-f(pic|PIC)\b//g +# from within pic code on x86. + +use Config; + +if ($Config{cppsymbols} =~ /__i386=1/) { + for ($mm->{CCDLFLAGS}, $mm->{CCCDLFLAGS}, @{$mm->{RESULT}}) { + s/\B-f(pic|PIC)\b//g + } + + # Put -O at the front so as not to change any existing optimisation level + # Need optimization of some form turned on to inline syscall() so that it + # sets the local errno + $mm->{OPTIMIZE} = '-O ' . $mm->{OPTIMIZE}; } $mm->flush;