This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Dispatch dl_expandspec at build time, not run time.
authorCraig A. Berry <craigberry@mac.com>
Sat, 19 Feb 2011 00:52:53 +0000 (18:52 -0600)
committerCraig A. Berry <craigberry@mac.com>
Sat, 19 Feb 2011 04:35:29 +0000 (22:35 -0600)
commit5477b9a189e12ee6fdd32441a015bb87802a99f2
tree1389ba085a5cae17a897d95a8bb9b8c727cf3fe5
parentea592722d0bf74d1b7b0f84e033462d8a79a3b1c
Dispatch dl_expandspec at build time, not run time.

Before 0a0b6c96e6042658aa123b3990724be593a2bb63, dl_expandspec was
an autoloaded function that would never be called if an XS version
was already loaded.  Without autoloading in DynaLoader anymore,
the pure Perl version gets loaded first, which causes trouble if
the XS version is what's expected.  It looks as though VMS is the
only platform that has an XS version, so just avoid declaring the
Perl version there.
ext/DynaLoader/DynaLoader_pm.PL