diff options
author | Leon Timmermans <fawaka@gmail.com> | 2020-12-24 16:03:27 +0100 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2021-01-07 08:43:32 +0000 |
commit | 125263d40da1dedc144a17f6e297b7679086df52 (patch) | |
tree | 8d924cb9cb77cf36bd5209f066828dbe9aad7ffb | |
parent | bdd419192a8b2ab26be9cf5b4b8d7fe6f66b144c (diff) | |
download | perl-125263d40da1dedc144a17f6e297b7679086df52.tar.gz |
Make MakeMaker use dlopen to check for library availability on MacOS
(cherry picked from commit 0287c5eaf3a95e7fe34ada76c475514047a1ea05)
-rw-r--r-- | cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm index 65b42fedf3..e040a899ed 100644 --- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm +++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm @@ -11,7 +11,7 @@ use 5.006; use strict; use warnings; -our $VERSION = '7.44'; +our $VERSION = '7.44_01'; $VERSION =~ tr/_//d; use ExtUtils::MakeMaker::Config; @@ -174,6 +174,10 @@ sub _unix_os2_ext { && -f ( $fullname = "$thispth/lib$thislib.$Config_dlext" ) ) { } + elsif ( $^O eq 'darwin' && require DynaLoader && defined &DynaLoader::dl_load_file + && DynaLoader::dl_load_file( $fullname = "$thispth/lib$thislib.$so", 0 ) ) + { + } elsif ( -f ( $fullname = "$thispth/$thislib$Config_libext" ) ) { } elsif ( -f ( $fullname = "$thispth/lib$thislib.dll$Config_libext" ) ) { |