Skip to content

Commit a8bdf41

Browse files
committed
core: link pthreads explicitly in linux build
1 parent 3f346ed commit a8bdf41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/core.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Implicitly, all crates behave as if they included the following prologue:
5656
#[cfg(target_os = "linux")]
5757
pub mod linkhack {
5858
#[link_args="-lrustrt -lrt"]
59+
#[link_args = "-lpthread"]
5960
extern {
6061
}
6162
}

0 commit comments

Comments
 (0)