From 1865898cd42c2745850e3fd502f32c4584968263 Mon Sep 17 00:00:00 2001 From: gfx Date: Sat, 18 Sep 2010 14:58:32 +0900 Subject: [PATCH] perl: Fix Makefile.PL --- perl/Makefile.PL | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/perl/Makefile.PL b/perl/Makefile.PL index 586a052..b5d2701 100644 --- a/perl/Makefile.PL +++ b/perl/Makefile.PL @@ -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;