Fix unresolved symbol error for the crate_map in libstd on os x.
This commit is contained in:
parent
d3309eb432
commit
2d22c0c8e4
1 changed files with 7 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue