From 125263d40da1dedc144a17f6e297b7679086df52 Mon Sep 17 00:00:00 2001 From: Leon Timmermans Date: Thu, 24 Dec 2020 16:03:27 +0100 Subject: Make MakeMaker use dlopen to check for library availability on MacOS (cherry picked from commit 0287c5eaf3a95e7fe34ada76c475514047a1ea05) --- cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" ) ) { -- cgit v1.2.1