aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/librdmacm/files/librdmacm-needs-libdl.patch
blob: bf15bea19083ea12da8ab015081a1805f01b0fa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Librdmacm links against libibverbs, and the current version of libibverbs
uses dlopen(), so librdmacm must also link against libdl.

Upstream-Status: Pending

Signed-off-by: Donn Seeley <donn.seeley@windriver.com>
---
 configure.in |    2 ++
 1 file changed, 2 insertions(+)

--- a/configure.in
+++ b/configure.in
@@ -39,6 +39,8 @@ AC_CHECK_SIZEOF(long)
 dnl Checks for libraries
 AC_CHECK_LIB(pthread, pthread_mutex_init, [],
     AC_MSG_ERROR([pthread_mutex_init() not found.  librdmacm requires libpthread.]))
+AC_CHECK_LIB(dl, dlsym, [],
+    AC_MSG_ERROR([dlsym() not found.  librdmacm requires libdl.]))
 if test "$disable_libcheck" != "yes"; then
 AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
     AC_MSG_ERROR([ibv_get_device_list() not found.  librdmacm requires libibverbs.]))