about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-21 15:56:55 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-27 10:11:15 -0700
commit6c048723f83fad6c96c2e19d6dfa1db547371c11 (patch)
treef73cdb4b5a30c302af48c94fc30f126e5d734364 /src/libstd/thread
parentd09851730c47f49555c84b76dd6e71d91b0555ed (diff)
downloadrust-6c048723f83fad6c96c2e19d6dfa1db547371c11.tar.gz
rust-6c048723f83fad6c96c2e19d6dfa1db547371c11.zip
std: Prepare for linking to musl
This commit modifies the standard library and its dependencies to link correctly
when built against MUSL. This primarily ensures that the right libraries are
linked against and when they're linked against they're linked against
statically.
Diffstat (limited to 'src/libstd/thread')
-rw-r--r--src/libstd/thread/local.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs
index 6d8f1cba709..5b7d6fdd864 100644
--- a/src/libstd/thread/local.rs
+++ b/src/libstd/thread/local.rs
@@ -364,6 +364,7 @@ mod imp {
         use sys_common::thread_local as os;
 
         extern {
+            #[linkage = "extern_weak"]
             static __dso_handle: *mut u8;
             #[linkage = "extern_weak"]
             static __cxa_thread_atexit_impl: *const ();