From: Andreas König Date: Thu, 2 Nov 2000 11:26:48 +0000 (+0100) Subject: Test::Harness revealed buglets in the new DynaLoader. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=632a9a7f3319d143cc62cb1495c02ec868a6dc88;p=p5sagit%2Fp5-mst-13.2.git Test::Harness revealed buglets in the new DynaLoader. Subject: [ID 20001102.001] Not OK: perl v5.7.0 +DEVEL7523 on i686-linux 2.2.16a (UNINSTALLED) Message-Id: p4raw-id: //depot/perl@7526 --- diff --git a/ext/DynaLoader/DynaLoader_pm.PL b/ext/DynaLoader/DynaLoader_pm.PL index 1f9a9bc..728172a 100644 --- a/ext/DynaLoader/DynaLoader_pm.PL +++ b/ext/DynaLoader/DynaLoader_pm.PL @@ -27,7 +27,9 @@ package DynaLoader; # # Tim.Bunce@ig.co.uk, August 1994 -$VERSION = "1.04"; # avoid typo warning +use vars qw($VERSION *AUTOLOAD); + +$VERSION = 1.04; # avoid typo warning require AutoLoader; *AUTOLOAD = \&AutoLoader::AUTOLOAD; @@ -59,6 +61,14 @@ sub dl_load_flags { 0x00 } # = @Config::Config{'dlext', 'dlsrc'}; EOT + +if (!$ENV{PERL_BUILD_EXPAND_CONFIG_VARS}) { + print OUT <) # See dl_expandspec() for more details. Should be harmless but # inefficient to define on systems that don't need it. -$do_expand = $Is_VMS = $^O eq 'VMS'; +$Is_VMS = $^O eq 'VMS'; +$do_expand = $Is_VMS; +$Is_MacOS = $^O eq 'MacOS'; @dl_require_symbols = (); # names of symbols we need @dl_resolve_using = (); # names of files to link with @dl_library_path = (); # path to look for files -#@dl_librefs = (); # things we have loaded -#@dl_modules = (); # Modules we have loaded +@dl_librefs = (); # things we have loaded +@dl_modules = (); # Modules we have loaded # This is a fix to support DLD's unfortunate desire to relink -lc @dl_resolve_using = dl_findfile('-lc') if $dlsrc eq "dl_dld.xs"; @@ -83,7 +95,7 @@ $do_expand = $Is_VMS = $^O eq 'VMS'; EOT my $cfg_dl_library_path = <<'EOT'; -push(@dl_library_path, split(' ', $Config::Config{'libpth'})); +push(@dl_library_path, split(' ', $Config::Config{libpth})); EOT sub dquoted_comma_list { @@ -132,7 +144,7 @@ EOT my $env_dl_library_path = <