develooper Front page | perl.perl5.porters | Postings from March 2003

no more 'make install && make test' with shared libperl.so on Linux

Thread Next
From:
Enache Adrian
Date:
March 22, 2003 12:55
Subject:
no more 'make install && make test' with shared libperl.so on Linux
Message ID:
20030322204949.GB794@ratsnest.hole
Everybody trying to build a Perl with a shared libperl.so on Linux
knows it: make test will actually test the previous built.
This already resulted for me in more than one horrible confusion.

One could get used to; always say
	make install && make test
This cannot be considered a solution, though.

The little patch below fixes that; it also makes a less serious
change to Configure: it lets it exit with a zero status on success,
so one could say, ex.

$ ./Configure -Dusedevel -def ../thrdconfig.sh && make test_harness

Regards
Adi

------------------------------------------------------------------
--- /arc/perl-current/Makefile.SH	2003-03-10 19:30:04.000000000 +0200
+++ Makefile.SH	2003-03-22 05:55:49.000000000 +0200
@@ -110,6 +110,9 @@
 case "$osname" in
 os390)	test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
 	;;
+linux)
+	ldlibpth="LD_PRELOAD=\"\$\$LD_PRELOAD `pwd`/$libperl\" $ldlibpth"
+	;;
 esac
 
 : Prepare dependency lists for Makefile.
--- /arc/perl-current/Configure	2003-03-18 10:06:30.000000000 +0200
+++ Configure	2003-03-22 02:43:38.000000000 +0200
@@ -21277,5 +21277,7 @@
 $rm -f kit*isdone ark*isdone
 $rm -rf UU
 
+echo
+
 : End of Configure
 
------------------------------------------------------------------



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About