From 57d00cb98f4308e7d5d69cb5127005b655ab2ad5 Mon Sep 17 00:00:00 2001 From: mertz Date: Wed, 18 May 2005 16:04:12 +0000 Subject: - to allow make test works correctly when another perl-tk is not installed in the system. Works only for perl 5.8 and hopefully above... --- Perl/Makefile.PL | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Perl') diff --git a/Perl/Makefile.PL b/Perl/Makefile.PL index 5db6713..dd27837 100644 --- a/Perl/Makefile.PL +++ b/Perl/Makefile.PL @@ -57,7 +57,7 @@ unless ($WIN) { #PERL_DL_NONLAZY set for tests. This is FALSE for TkZinc. if ($] >= 5.008000) { - $ExtUtils::MM_Unix::test_via_harness = sub { + *ExtUtils::MM_Unix::test_via_harness = sub { my($self, $perl, $tests) = @_; # return $self->SUPER::test_via_harness("PERL_DL_NONLAZY=1 $perl", $tests); # I should use the SUPER method, but this needs some import tunning... @@ -65,7 +65,7 @@ if ($] >= 5.008000) { }; #Again, the PERL_DL_NONLAZY thing. - $ExtUtils::MM_Unix::test_via_script = sub { + *ExtUtils::MM_Unix::test_via_script = sub { my($self, $perl, $script) = @_; # return $self->SUPER::test_via_script("PERL_DL_NONLAZY=1 $perl", $script); # I should use the SUPER method, but this needs some import tunning... -- cgit v1.1