diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-22 18:41:50 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-22 18:41:50 +0000 |
commit | 23d2500b2b45b1beddc8de6ccd7c60068286d061 (patch) | |
tree | 0568232e7941f12ccc860d57af12bae8e16d1436 /ext/DynaLoader/dlutils.c | |
parent | 2c20ed41a3360f03ffb7f6708714c106fdee7344 (diff) | |
download | perl-23d2500b2b45b1beddc8de6ccd7c60068286d061.tar.gz |
make unloading of extension shared objects (change#5381) a build
option (use "Configure -Accflags=-DDL_UNLOAD_ALL_AT_EXIT" to enable)
p4raw-link: @5381 on //depot/perl: abb9e9dca5a5f1213886f2e81a42c9a565def727
p4raw-id: //depot/perl@5885
Diffstat (limited to 'ext/DynaLoader/dlutils.c')
-rw-r--r-- | ext/DynaLoader/dlutils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/DynaLoader/dlutils.c b/ext/DynaLoader/dlutils.c index 5c6bbea1ac..7b67cf0a5d 100644 --- a/ext/DynaLoader/dlutils.c +++ b/ext/DynaLoader/dlutils.c @@ -69,7 +69,9 @@ dl_generic_private_init(pTHXo) /* called by dl_*.xs dl_private_init() */ if (!dl_loaded_files) dl_loaded_files = newHV(); /* provide cache for dl_*.xs if needed */ #endif +#ifdef DL_UNLOAD_ALL_AT_EXIT call_atexit(&dl_unload_all_files, (void*)0); +#endif } |