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

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

Thread Next
From:
H.Merijn Brand
Date:
May 4, 2020 12:00
Subject:
[Perl/perl5] 207393: Re-order $Config{libpth} in DynaLoader in 64bitenv
Message ID:
Perl/perl5/push/refs/heads/dynaloader-64bit-order/000000-207393@github.com
  Branch: refs/heads/dynaloader-64bit-order
  Home:   https://github.com/Perl/perl5
  Commit: 207393c0054529b001b62955ac3abb96964b33db
      https://github.com/Perl/perl5/commit/207393c0054529b001b62955ac3abb96964b33db
  Author: H.Merijn Brand <h.m.brand@xs4all.nl>
  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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About