Make _really_ sure Dynaloader.xs code is initialized only once
Jan Dubois [Wed, 21 Oct 1998 00:55:51 +0000 (02:55 +0200)]
Message-ID: <36380269.55370608@smtp1.ibm.net>

p4raw-id: //depot/perl@2067

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) {