aboutsummaryrefslogtreecommitdiff
path: root/src/rt
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-10-05 11:36:48 -0700
committerPatrick Walton <[email protected]>2010-10-05 11:37:46 -0700
commit246e72b0fbb838ae566fbfda4b023912de86a2f2 (patch)
tree565c155a7fc97cc6f5997b47d5414ee0606a3b74 /src/rt
parentImprove name nodes to ast, teach to parse qualified names, put out flaming ti... (diff)
downloadrust-246e72b0fbb838ae566fbfda4b023912de86a2f2.tar.xz
rust-246e72b0fbb838ae566fbfda4b023912de86a2f2.zip
Use RTLD_GLOBAL when loading libraries. This is needed to get LLVM working on the Mac in rustc.
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/rust_crate_cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_crate_cache.cpp b/src/rt/rust_crate_cache.cpp
index f89e2a54..adf1bbfc 100644
--- a/src/rt/rust_crate_cache.cpp
+++ b/src/rt/rust_crate_cache.cpp
@@ -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);