From a763fc5903aa1469bfd804a2b5a755fe4cd879cc Mon Sep 17 00:00:00 2001
From: Anatol Pomozov <anatol.pomozov@gmail.com>
Date: Sat, 1 Apr 2017 10:51:33 -0700
Subject: [PATCH] Link libc crate against pthread

pthread_* functions are defined in libpthread thus we need to link against
this library.
---
 src/unix/mod.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index b9f8cc0f..15152eb1 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -242,6 +242,7 @@ cfg_if! {
         #[link(name = "c")]
         #[link(name = "m")]
         #[link(name = "rt")]
+        #[link(name = "pthread")]
         extern {}
     }
 }
-- 
GitLab