summaryrefslogtreecommitdiff
path: root/lib/Support/Unix/DynamicLibrary.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/Unix/DynamicLibrary.inc')
-rw-r--r--lib/Support/Unix/DynamicLibrary.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/Unix/DynamicLibrary.inc b/lib/Support/Unix/DynamicLibrary.inc
index aad77f19c35a5..f05103ccd1ebe 100644
--- a/lib/Support/Unix/DynamicLibrary.inc
+++ b/lib/Support/Unix/DynamicLibrary.inc
@@ -20,6 +20,9 @@ DynamicLibrary::HandleSet::~HandleSet() {
::dlclose(Handle);
if (Process)
::dlclose(Process);
+
+ // llvm_shutdown called, Return to default
+ DynamicLibrary::SearchOrder = DynamicLibrary::SO_Linker;
}
void *DynamicLibrary::HandleSet::DLOpen(const char *File, std::string *Err) {