Skip to content

Commit 21a441d

Browse files
Leontbingos
authored andcommitted
Improve dlopen check on MacOS
Previously we accidentally checked for a .bundle, when we should be checking for a .dylib
1 parent 4e83947 commit 21a441d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ExtUtils/Liblist/Kid.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ 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 ) )
177+
elsif ( $^O eq 'darwin' && require DynaLoader && defined &DynaLoader::dl_load_file
178+
&& DynaLoader::dl_load_file( $fullname = "$thispth/lib$thislib.$so", 0 ) )
179179
{
180180
}
181181
elsif ( -f ( $fullname = "$thispth/$thislib$Config_libext" ) ) {

0 commit comments

Comments
 (0)