Link libc crate against pthread
pthread_* functions are defined in libpthread thus we need to link against this library.
This commit is contained in:
parent
89aab46099
commit
a763fc5903
@ -242,6 +242,7 @@ cfg_if! {
|
||||
#[link(name = "c")]
|
||||
#[link(name = "m")]
|
||||
#[link(name = "rt")]
|
||||
#[link(name = "pthread")]
|
||||
extern {}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user