mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Use RTLD_GLOBAL when loading libraries. This is needed to get LLVM working on the Mac in rustc.
This commit is contained in:
@@ -8,7 +8,7 @@ rust_crate_cache::lib::lib(rust_dom *dom, char const *name)
|
||||
#if defined(__WIN32__)
|
||||
handle = (uintptr_t)LoadLibrary(_T(name));
|
||||
#else
|
||||
handle = (uintptr_t)dlopen(name, RTLD_LOCAL|RTLD_LAZY);
|
||||
handle = (uintptr_t)dlopen(name, RTLD_GLOBAL|RTLD_LAZY);
|
||||
#endif
|
||||
dom->log(rust_log::CACHE, "loaded library '%s' as 0x%" PRIxPTR,
|
||||
name, handle);
|
||||
|
||||
Reference in New Issue
Block a user