From: Marek Rouchal (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.0.11-30914-93038.14.
5123598132685@perl.org>
p4raw-id: //depot/perl@23186
);
use strict;
-$VERSION = 1.2506_01;
+$VERSION = 1.26;
@ISA = qw(Exporter);
@EXPORT = qw(&xsinit &ldopts
$libperl = $Config{libperl};
}
else {
- $libperl = (grep(/^-l\w*perl\w*$/, @link_args))[0] || "-lperl";
+ $libperl = (grep(/^-l\w*perl\w*$/, @link_args))[0]
+ || ($Config{libperl} =~ /^lib(\w+)(\Q$lib_ext\E|\.\Q$Config{dlext}\E)$/
+ ? "-l$1" : '')
+ || "-lperl";
}
my $lpath = File::Spec->catdir($Config{archlibexp}, 'CORE');