summaryrefslogtreecommitdiff
path: root/lib/ExtUtils/Embed.pm
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-07-13 22:47:29 +0300
committerH.Merijn Brand <h.m.brand@xs4all.nl>2006-07-13 17:12:00 +0000
commit2f3efc978ada94e3718bd6f3a25b06cd1d13b6f8 (patch)
tree4fbd3f59e65577085646ea3f266175edf15efd1e /lib/ExtUtils/Embed.pm
parent6ae709ad20fb5debe5f58c9686ed99226819442f (diff)
downloadperl-2f3efc978ada94e3718bd6f3a25b06cd1d13b6f8.tar.gz
z/OS: non-CPAN ext and lib + main() without the third arg + Stephen McCamant's comment
Message-ID: <44B67921.6090901@iki.fi> p4raw-id: //depot/perl@28567
Diffstat (limited to 'lib/ExtUtils/Embed.pm')
-rw-r--r--lib/ExtUtils/Embed.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ExtUtils/Embed.pm b/lib/ExtUtils/Embed.pm
index 79bca4dfe2..78451c7d8f 100644
--- a/lib/ExtUtils/Embed.pm
+++ b/lib/ExtUtils/Embed.pm
@@ -225,11 +225,13 @@ sub ldopts {
if ($^O eq 'MSWin32') {
$libperl = $Config{libperl};
}
- else {
+ elsif ($^O eq 'os390' && $Config{usedl}) {
+ # Nothing for OS/390 (z/OS) dynamic.
+ } else {
$libperl = (grep(/^-l\w*perl\w*$/, @link_args))[0]
|| ($Config{libperl} =~ /^lib(\w+)(\Q$lib_ext\E|\.\Q$Config{dlext}\E)$/
? "-l$1" : '')
- || "-lperl";
+ || "-lperl";
}
my $lpath = File::Spec->catdir($Config{archlibexp}, 'CORE');