--- Linux-AIO/Makefile.PL 2005/07/08 03:10:00 1.8 +++ Linux-AIO/Makefile.PL 2005/08/25 06:04:11 1.9 @@ -51,6 +51,11 @@ 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;