As stated in bug 1002 (https://bugs.openfabrics.org/show_bug.cgi?id=1002)
when LDFLAGS like "-Wl,-z,defs" (disallows undefined symbols) is used it
fails to resolve libpthread symbols. This simple patch fixes it.

Signed-off-by: Sasha Khapyorsky <[EMAIL PROTECTED]>
---
 configure.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/configure.in b/configure.in
index 9304539..4f9ba8f 100644
--- a/configure.in
+++ b/configure.in
@@ -27,6 +27,8 @@ AC_PROG_CC
 dnl Checks for libraries
 AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
     AC_MSG_ERROR([ibv_get_device_list() not found.  libmlx4 requires 
libibverbs.]))
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+    AC_MSG_ERROR([pthread_mutex_init() not found.  libmlx4 requires 
libpthread.]))
 
 dnl Checks for header files.
 AC_CHECK_HEADER(infiniband/driver.h, [],
-- 
1.5.5.1.178.g1f811

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to