diff options
| author | Luqman Aden <laden@csclub.uwaterloo.ca> | 2013-09-19 17:22:59 -0400 |
|---|---|---|
| committer | Luqman Aden <laden@csclub.uwaterloo.ca> | 2013-09-19 18:17:29 -0400 |
| commit | 2d22c0c8e4b32d563abf2aaf5630b089b3564f27 (patch) | |
| tree | 0922b255c8eca50fec706e42f26acb66c097f20f /src/libstd | |
| parent | d3309eb4325cbe85b54554c5d35ca3d6865c3976 (diff) | |
| download | rust-2d22c0c8e4b32d563abf2aaf5630b089b3564f27.tar.gz rust-2d22c0c8e4b32d563abf2aaf5630b089b3564f27.zip | |
Fix unresolved symbol error for the crate_map in libstd on os x.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/rt/crate_map.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstd/rt/crate_map.rs b/src/libstd/rt/crate_map.rs index f6ebb8bcdff..e4c3763be96 100644 --- a/src/libstd/rt/crate_map.rs +++ b/src/libstd/rt/crate_map.rs @@ -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] |
