perl: Fix Makefile.PL

This commit is contained in:
gfx
2010-09-18 14:58:32 +09:00
parent 8935ecfdb8
commit 1865898cd4

View File

@@ -1,3 +1,5 @@
# Usage: Makefile.PL --pp # disable XS
# Makefile.PL -g # add -g to the compiler and disable optimization flags
use inc::Module::Install;
use Module::Install::XSUtil 0.32;
use Config;
@@ -21,8 +23,9 @@ if ( $] >= 5.008005 and want_xs() ) {
if ( $has_c99 ) {
use_xshelper();
cc_src_paths('xs-src');
if ($ENV{DEBUG}) {
cc_append_to_ccflags '-g';
if($Module::Install::AUTHOR) {
postamble qq{test :: test_pp\n\n};
}
}
else {
@@ -67,10 +70,6 @@ test_requires('Test::Requires');
test_with_env( test_pp => PERL_DATA_MESSAGEPACK => 'pp' );
if($Module::Install::AUTHOR) {
postamble qq{test :: test_pp\n\n};
}
repository('http://github.com/msgpack/msgpack');
auto_include;
WriteAll;