[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl5-changes
Subject:    [Perl/perl5] 8c7ed7: Re-order $Config{libpth} in DynaLoader in 64bit env
From:       "H.Merijn Brand" via perl5-changes <perl5-changes () perl ! org>
Date:       2021-01-26 2:08:15
Message-ID: Perl/perl5/push/refs/heads/smoke-me/tux-dynaloader64order/207393-8c7ed7 () github ! com
[Download RAW message or body]

  Branch: refs/heads/smoke-me/tux-dynaloader64order
  Home:   https://github.com/Perl/perl5
  Commit: 8c7ed718e27099ba2cdc32c959ff8199ae7d966a
      https://github.com/Perl/perl5/commit/8c7ed718e27099ba2cdc32c959ff8199ae7d966a
  Author: H.Merijn Brand <h.m.brand@xs4all.nl>
  Date:   2021-01-25 (Mon, 25 Jan 2021)

  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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic