--- Linux-AIO/Makefile.PL 2001/08/14 03:18:53 1.1 +++ Linux-AIO/Makefile.PL 2005/08/25 06:04:11 1.9 @@ -1,6 +1,28 @@ use ExtUtils::MakeMaker; -WriteMakefile( +use Config; + +print <= 2.4 or print <new({ dist => { PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', COMPRESS => 'gzip -9v', @@ -8,16 +30,33 @@ }, NAME => "Linux::AIO", VERSION_FROM => "AIO.pm", -); +}); sub MY::postamble { <{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;