develooper Front page | perl.perl5.porters | Postings from October 2000

[PATCH: perl@7483] generalize AIX ccversion hack for re extension

Thread Next
From:
Peter Prymmer
Date:
October 30, 2000 16:38
Subject:
[PATCH: perl@7483] generalize AIX ccversion hack for re extension
Message ID:
Pine.OSF.4.10.10010301634500.67363-100000@aspara.forte.com

The enclosed patch adds a new file to ext/re/hints/aix.pl and mentions
it in MANIFEST.  The previous hack introduced into ext/re/Makefile.PL is
moved into the new hints file.  The ccversion checking has been
generalized a bit and passes 100% tests on the mentioned, older versions
of the vendor supplied cc (aka x.l.c.), namely '3.6.6.0', '3.6.4.0', 
and '3.1.3.3'.  I cannot test on other versions at this time
unfortunately.

Files:

    MANIFEST            # added mention of new file
    ext/re/Makefile.PL  # remove aix code
    ext/re/hints/aix.pl # take and generalize code previously in Makefile.PL

Here is the patch:

diff -ruN perl.7483/MANIFEST perl/MANIFEST
--- perl.7483/MANIFEST	Sat Oct 28 18:34:36 2000
+++ perl/MANIFEST	Mon Oct 30 15:11:10 2000
@@ -423,6 +423,7 @@
 ext/attrs/attrs.pm	attrs extension Perl module
 ext/attrs/attrs.xs	attrs extension external subroutines
 ext/re/Makefile.PL	re extension makefile writer
+ext/re/hints/aix.pl	Hints for re for named architecture
 ext/re/hints/mpeix.pl	Hints for re for named architecture
 ext/re/re.pm		re extension Perl module
 ext/re/re.xs		re extension external subroutines
diff -ruN perl.7483/ext/re/Makefile.PL perl/ext/re/Makefile.PL
--- perl.7483/ext/re/Makefile.PL	Wed Oct 25 06:46:08 2000
+++ perl/ext/re/Makefile.PL	Mon Oct 30 15:02:19 2000
@@ -4,10 +4,6 @@
 
 my $object = 're_exec$(OBJ_EXT) re_comp$(OBJ_EXT) re$(OBJ_EXT)';
 
-if ($^O eq 'aix' && defined($Config{'ccversion'}) && $Config{'ccversion'} eq '3.6.6.0') {
-    $object .= ' ../../deb$(OBJ_EXT)';
-}
-
 WriteMakefile(
     NAME		=> 're',
     VERSION_FROM	=> 're.pm',
diff -ruN perl.7483/ext/re/hints/aix.pl perl/ext/re/hints/aix.pl
--- perl.7483/ext/re/hints/aix.pl	Wed Dec 31 16:00:00 1969
+++ perl/ext/re/hints/aix.pl	Mon Oct 30 15:22:02 2000
@@ -0,0 +1,16 @@
+# Add explicit link to deb.o to pick up .Perl_deb symbol which is not
+# mentioned in perl.exp for earlier cc (xlc) versions in at least
+# non DEBUGGING builds
+#  Peter Prymmer <pvhp@best.com>
+
+use Config;
+
+if ($^O eq 'aix' && defined($Config{'ccversion'}) && 
+       $Config{'ccversion'} =~ /^3\.\d/ # needed for at least these versions:
+                                        # $Config{'ccversion'} eq '3.6.6.0' 
+                                        # $Config{'ccversion'} eq '3.6.4.0' 
+                                        # $Config{'ccversion'} eq '3.1.3.3' 
+    ) {
+    $self->{OBJECT} .= ' ../../deb$(OBJ_EXT)';
+}
+
End of Patch.


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