summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-29 14:49:28 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-29 14:49:28 +0000
commitf490490ffc7b30ee86d473fa296bc593f4db7e1f (patch)
treeb3bb8a41f04c03089b2eb107bdc0bab457ce889d
parent87cec682fa689adeda22b6a3bf558ee0a8f0df4f (diff)
downloadperl-f490490ffc7b30ee86d473fa296bc593f4db7e1f.tar.gz
AIX needs an explicit symbol export list.
p4raw-id: //depot/perl@12767
-rw-r--r--lib/ExtUtils/Embed.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ExtUtils/Embed.t b/lib/ExtUtils/Embed.t
index 08c7cabcc5..0cfc737be6 100644
--- a/lib/ExtUtils/Embed.t
+++ b/lib/ExtUtils/Embed.t
@@ -44,6 +44,14 @@ else {
}
push(@cmd,ldopts());
+if ($^O eq 'aix') { # AIX needs an explicit symbol export list.
+ my ($perl_exp) = grep { -f } qw(perl.exp ../perl.exp);
+ die "where is perl.exp?\n" unless defined $perl_exp;
+ for (@cmd) {
+ s!-bE:(\S+)!-bE:$perl_exp!;
+ }
+}
+
print "# @cmd"; # where is the newline coming from? ldopts()?
print "not " if system(join(' ',@cmd));
print "ok 1\n";