| 1 |
root |
1.1 |
use ExtUtils::MakeMaker; |
| 2 |
|
|
|
| 3 |
root |
1.2 |
my $mm = MM->new({ |
| 4 |
root |
1.1 |
dist => { |
| 5 |
|
|
PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
| 6 |
|
|
COMPRESS => 'gzip -9v', |
| 7 |
|
|
SUFFIX => '.gz', |
| 8 |
|
|
}, |
| 9 |
|
|
NAME => "Linux::AIO", |
| 10 |
|
|
VERSION_FROM => "AIO.pm", |
| 11 |
root |
1.2 |
}); |
| 12 |
root |
1.1 |
|
| 13 |
|
|
sub MY::postamble { |
| 14 |
|
|
<<EOF; |
| 15 |
|
|
|
| 16 |
|
|
# set \$VERSION in all modules |
| 17 |
|
|
setver: |
| 18 |
|
|
\$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm |
| 19 |
|
|
|
| 20 |
|
|
EOF |
| 21 |
|
|
} |
| 22 |
|
|
|
| 23 |
root |
1.2 |
# now get rid of -fpic, because gcc can't use syscall'ed closures |
| 24 |
|
|
# from within pic code. |
| 25 |
|
|
for ($mm->{CCDLFLAGS}, $mm->{CCCDLFLAGS}, @{$mm->{RESULT}}) { |
| 26 |
|
|
s/\B-f(pic|PIC)\b//g |
| 27 |
|
|
} |
| 28 |
|
|
|
| 29 |
|
|
$mm->flush; |
| 30 |
root |
1.1 |
|