This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
integrate changes 1835,2003,2067 and File::Find change in 1938
[perl5.git] / ext / DynaLoader / DynaLoader_pm.PL
index 4c41559..cf7d708 100644 (file)
@@ -101,7 +101,8 @@ push(@dl_library_path, split(/:/, $ENV{LD_LIBRARY_PATH}))
 
 
 # No prizes for guessing why we don't say 'bootstrap DynaLoader;' here.
-boot_DynaLoader('DynaLoader') if defined(&boot_DynaLoader);
+boot_DynaLoader('DynaLoader') if defined(&boot_DynaLoader) &&
+                                !defined(&dl_load_file);
 
 
 if ($dl_debug) {