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 | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/configure.in b/configure.in
index dcc207d..faaa4c3 100644
--- a/configure.in
+++ b/configure.in
@@ -62,6 +62,9 @@ AC_PROG_CC
dnl Checks for libraries
AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
AC_MSG_ERROR([ibv_get_device_list() not found. libipathverbs requires
libibverbs.]))
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+ AC_MSG_ERROR([pthread_mutex_init() not found. libipathverbs 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