Skip to content

Commit 8b924f6

Browse files
Leontbingos
authored andcommitted
Use dlopen to check for library presence on Mac OS
Without this fix, it will erroneously believe that system provided libraries aren't available at all.
1 parent 2b47d0c commit 8b924f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ExtUtils/Liblist/Kid.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ sub _unix_os2_ext {
174174
&& -f ( $fullname = "$thispth/lib$thislib.$Config_dlext" ) )
175175
{
176176
}
177+
elsif ( defined( $Config_dlext ) && $^O eq 'darwin' && require DynaLoader && defined &DynaLoader::dl_load_file
178+
&& DynaLoader::dl_load_file( $fullname = "$thispth/lib$thislib.$Config_dlext", 0 ) )
179+
{
180+
}
177181
elsif ( -f ( $fullname = "$thispth/$thislib$Config_libext" ) ) {
178182
}
179183
elsif ( -f ( $fullname = "$thispth/lib$thislib.dll$Config_libext" ) ) {

0 commit comments

Comments
 (0)