aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormertz2005-05-17 10:58:36 +0000
committermertz2005-05-17 10:58:36 +0000
commitcd1cddcc18af8024f7804a0b2fd50ace0b8f0abe (patch)
tree38daf2b766aa54623678236e076ff9bbc5f38f37
parenta3b27061f26140962e89942d84df7ce75363a8c8 (diff)
downloadtkzinc-cd1cddcc18af8024f7804a0b2fd50ace0b8f0abe.zip
tkzinc-cd1cddcc18af8024f7804a0b2fd50ace0b8f0abe.tar.gz
tkzinc-cd1cddcc18af8024f7804a0b2fd50ace0b8f0abe.tar.bz2
tkzinc-cd1cddcc18af8024f7804a0b2fd50ace0b8f0abe.tar.xz
- redefinning ExtUtils::MM_Unix::test_via_harness and ExtUtils::MM_Unix::test_via_script to avoid PERL_DL_NONLAZY=1 during the test.
This absolutely necessary to test properly Tkzinc before installation I hope this does not broke the process in some unforeseen cases. PS: the author did not document the reason why I set the PERL_DL_NONLAZY to 1.
-rw-r--r--Perl/Makefile.PL18
1 files changed, 18 insertions, 0 deletions
diff --git a/Perl/Makefile.PL b/Perl/Makefile.PL
index d731648..ebcd5ec 100644
--- a/Perl/Makefile.PL
+++ b/Perl/Makefile.PL
@@ -53,6 +53,24 @@ unless ($WIN) {
$INC .= " -I/usr/X11R6/include";
}
+#For some reason which the author of ExtUtils::MM_Unix forget, Unix machines like to have
+#PERL_DL_NONLAZY set for tests. This is FALSE for TkZinc.
+
+sub ExtUtils::MM_Unix::test_via_harness {
+ 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...
+ return ExtUtils::MM_Any::test_via_harness($self, $perl, $tests);
+}
+
+#Again, the PERL_DL_NONLAZY thing.
+sub ExtUtils::MM_Unix::test_via_script {
+ 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...
+ return ExtUtils::MM_Any::test_via_script($self, $perl, $script);
+}
+
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(