Make _really_ sure Dynaloader.xs code is initialized only once
authorJan Dubois <jand@activestate.com>
Wed, 21 Oct 1998 00:55:51 +0000 (02:55 +0200)
committerGurusamy Sarathy <gsar@cpan.org>
Sun, 25 Oct 1998 06:50:19 +0000 (06:50 +0000)
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) {