[ofa-general] [PATCH] libipathverbs: fix linker dependencies

Sasha Khapyorsky sashak at voltaire.com
Fri May 23 06:52:19 PDT 2008


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 <sashak at voltaire.com>
---
 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




More information about the general mailing list