diff options
author | 2008-09-29 17:35:51 +0000 | |
---|---|---|
committer | 2008-09-29 17:35:51 +0000 | |
commit | 7bfa9f444b545f1bc96a4b2919ed2583bf07c7ea (patch) | |
tree | a27ed65c25e4fb26d9bca8126dbdf2b189894d6a /gnu/usr.bin/perl/lib/ExtUtils/Embed.pm | |
parent | import perl 5.10.0 from CPAN (diff) | |
download | wireguard-openbsd-7bfa9f444b545f1bc96a4b2919ed2583bf07c7ea.tar.xz wireguard-openbsd-7bfa9f444b545f1bc96a4b2919ed2583bf07c7ea.zip |
fix conflicts and merge in local changes to perl 5.10.0
Diffstat (limited to 'gnu/usr.bin/perl/lib/ExtUtils/Embed.pm')
-rw-r--r-- | gnu/usr.bin/perl/lib/ExtUtils/Embed.pm | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/gnu/usr.bin/perl/lib/ExtUtils/Embed.pm b/gnu/usr.bin/perl/lib/ExtUtils/Embed.pm index 945a026b161..dc6d5e75d6f 100644 --- a/gnu/usr.bin/perl/lib/ExtUtils/Embed.pm +++ b/gnu/usr.bin/perl/lib/ExtUtils/Embed.pm @@ -1,4 +1,4 @@ -# $Id: Embed.pm,v 1.6 2003/12/03 03:02:37 millert Exp $ +# $Id: Embed.pm,v 1.1.1.1 2002/01/16 19:27:19 schwern Exp $ require 5.002; package ExtUtils::Embed; @@ -18,7 +18,8 @@ use vars qw(@ISA @EXPORT $VERSION ); use strict; -$VERSION = 1.26; +# This is not a dual-life module, so no need for development version numbers +$VERSION = '1.27'; @ISA = qw(Exporter); @EXPORT = qw(&xsinit &ldopts @@ -133,7 +134,9 @@ sub xsi_body { sub static_ext { unless (scalar @Extensions) { - @Extensions = sort split /\s+/, $Config{static_ext}; + my $static_ext = $Config{static_ext}; + $static_ext =~ s/^\s+//; + @Extensions = sort split /\s+/, $static_ext; unshift @Extensions, qw(DynaLoader); } @Extensions; @@ -225,11 +228,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'); @@ -425,7 +430,7 @@ rather than print it to STDOUT. perl -MExtUtils::Embed -e ldopts -This will print arguments for linking with B<libperl.a>, B<DynaLoader> and +This will print arguments for linking with B<libperl> and extensions found in B<$Config{static_ext}>. This includes libraries found in B<$Config{libs}> and the first ModuleName.a library for each extension that is found by searching B<@INC> or the path @@ -439,17 +444,8 @@ are picked up from the B<extralibs.ld> file in the same directory. This will do the same as the above example, along with printing additional arguments for linking with the B<Socket> extension. - - perl -MExtUtils::Embed -e ldopts -- DynaLoader - - -This will print arguments for linking with just the B<DynaLoader> extension -and B<libperl.a>. - - perl -MExtUtils::Embed -e ldopts -- -std Msql -- -L/usr/msql/lib -lmsql - Any arguments after the second '--' token are additional linker arguments that will be examined for potential conflict. If there is no conflict, the additional arguments will be part of the output. |