Fix unresolved symbol error for the crate_map in libstd on os x.

This commit is contained in:
Luqman Aden 2013-09-19 17:22:59 -04:00
parent d3309eb432
commit 2d22c0c8e4

View File

@ -16,6 +16,13 @@ use vec;
use hashmap::HashSet;
use container::MutableSet;
// Need to tell the linker on OS X to not barf on undefined symbols
// and instead look them up at runtime, which we need to resolve
// the crate_map properly.
#[cfg(target_os = "macos")]
#[link_args = "-undefined dynamic_lookup"]
extern {}
extern {
#[cfg(not(stage0))]
#[weak_linkage]