summaryrefslogtreecommitdiff
path: root/ext/re
diff options
context:
space:
mode:
authorPeter Prymmer <PPrymmer@factset.com>2000-10-30 08:41:21 -0800
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-31 14:11:08 +0000
commitc5b802edbc2f0c65267eeef77229d452ab090751 (patch)
tree922cec4624a209fe638e2a5a6132ea2a8063a39e /ext/re
parent11d7f64f86584fefbeb7beb3792b3ccd34a45058 (diff)
downloadperl-c5b802edbc2f0c65267eeef77229d452ab090751.tar.gz
generalize AIX ccversion hack for re extension
Message-ID: <Pine.OSF.4.10.10010301634500.67363-100000@aspara.forte.com> p4raw-id: //depot/perl@7495
Diffstat (limited to 'ext/re')
-rw-r--r--ext/re/Makefile.PL4
-rw-r--r--ext/re/hints/aix.pl16
2 files changed, 16 insertions, 4 deletions
diff --git a/ext/re/Makefile.PL b/ext/re/Makefile.PL
index f337db191f..b8d25bd0d6 100644
--- a/ext/re/Makefile.PL
+++ b/ext/re/Makefile.PL
@@ -4,10 +4,6 @@ use Config;
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 --git a/ext/re/hints/aix.pl b/ext/re/hints/aix.pl
new file mode 100644
index 0000000000..35e04d77e1
--- /dev/null
+++ b/ext/re/hints/aix.pl
@@ -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)';
+}
+