aboutsummaryrefslogtreecommitdiff
path: root/Perl/Makefile.PL.in
diff options
context:
space:
mode:
authormertz2003-09-23 09:52:48 +0000
committermertz2003-09-23 09:52:48 +0000
commit092d0d888b567f4986eb24ffa2ab51ae7d219b08 (patch)
tree728048441a0fdc838a3e54f004703d2994f23ab1 /Perl/Makefile.PL.in
parent30a6a8e9e927aac072c293f962652ea42e278151 (diff)
downloadtkzinc-092d0d888b567f4986eb24ffa2ab51ae7d219b08.zip
tkzinc-092d0d888b567f4986eb24ffa2ab51ae7d219b08.tar.gz
tkzinc-092d0d888b567f4986eb24ffa2ab51ae7d219b08.tar.bz2
tkzinc-092d0d888b567f4986eb24ffa2ab51ae7d219b08.tar.xz
redefinition of 2 MakeMaker Methods so that "make test" DO load
the libTkzincxxx.so and tests really work!
Diffstat (limited to 'Perl/Makefile.PL.in')
-rw-r--r--Perl/Makefile.PL.in24
1 files changed, 23 insertions, 1 deletions
diff --git a/Perl/Makefile.PL.in b/Perl/Makefile.PL.in
index 57e1017..1bb352c 100644
--- a/Perl/Makefile.PL.in
+++ b/Perl/Makefile.PL.in
@@ -11,5 +11,27 @@ Tk::MMutil::TkExtMakefile(
'OBJECT' => '$(O_FILES)',
'VERSION_FROM' => 'Zinc.pm',
'XS_VERSION' => $Tk::Config::VERSION,
+## 'INSTALLDIRS' => 'vendor',
'INC' => "-I. -I@PERL_TK_LIB@/pTk",
- 'LIBS' => ["-L/usr/X11R6/lib -lX11 -L.. -l@PACKAGE@@VERSION@"]);
+ 'LIBS' => ["-L/usr/X11R6/lib -lX11 -L.. -l@PACKAGE@@VERSION@"],
+ );
+
+sub MY::test_via_harness {
+ my($self, $perl, $tests) = @_;
+# The following uncommented line disable the load of libTkzincx.yyy.so
+# during the "make test". What is the reason of this line is totally obscure
+# for me. C.Mertz 22/sept/2003
+#
+# $perl = "PERL_DL_NONLAZY=1 $perl" unless $Is_Win32;
+ "\t$perl".q! -I$(INST_ARCHLIB) -I$(INST_LIB) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -e 'use Test::Harness qw(&runtests $$verbose); $$verbose=$(TEST_VERBOSE); runtests @ARGV;' !."$tests\n";
+}
+
+
+# as this method is very similar to the previous one, I applied the same patch,
+# even if it seems not being used for building Tk::Zinc C.Mertz 22/sept/2003
+sub MY::test_via_script {
+ my($self, $perl, $script) = @_;
+# $perl = "PERL_DL_NONLAZY=1 $perl" unless $Is_Win32;
+ qq{\t$perl}.q{ -I$(INST_ARCHLIB) -I$(INST_LIB) -I$(PERL_ARCHLIB) -I$(PERL_LIB) }.qq{$script
+};
+}