From 092d0d888b567f4986eb24ffa2ab51ae7d219b08 Mon Sep 17 00:00:00 2001 From: mertz Date: Tue, 23 Sep 2003 09:52:48 +0000 Subject: redefinition of 2 MakeMaker Methods so that "make test" DO load the libTkzincxxx.so and tests really work! --- Perl/Makefile.PL.in | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'Perl/Makefile.PL.in') 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 +}; +} -- cgit v1.1