develooper Front page | perl.perl5.changes | Postings from May 2020

[Perl/perl5] 207393: Re-order $Config{libpth} in DynaLoader in 64bitenv

Thread Next
H.Merijn Brand
May 4, 2020 12:00
[Perl/perl5] 207393: Re-order $Config{libpth} in DynaLoader in 64bitenv
Message ID:
  Branch: refs/heads/dynaloader-64bit-order
  Commit: 207393c0054529b001b62955ac3abb96964b33db
  Author: H.Merijn Brand <>
  Date:   2020-05-04 (Mon, 04 May 2020)

  Changed paths:
    M ext/DynaLoader/DynaLoader_pm.PL
    M pod/perldelta.pod

  Log Message:
  Re-order $Config{libpth} in DynaLoader in 64bit env

In a 64bit environment, force 64bit locations *before* 32bit locations.
This will move /usr/lib64 in front of /usr/lib and /lib64 in front of
/lib.  This is important if a module uses $Config{libpth} to find a
library to load, like FFI::CheckLib does. If a library is installed in
both locations, it is likely to pick the wrong one if the order is not
showing the correct architecture first
As this clutch only looks at trailing 64, it will have no impact on
locations differing completely, as /usr/lib vs /usr/lib/i386-linux-gnu/
like on debian.

Also just include existing PATH elements and filter duplicates.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About