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

Sasha Khapyorsky sashak at voltaire.com
Fri May 23 06:46:08 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 |    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




More information about the general mailing list