diff options
| -rw-r--r-- | recipes-extended/librdmacm/files/librdmacm-needs-libdl.patch | 21 | ||||
| -rw-r--r-- | recipes-extended/librdmacm/librdmacm_1.0.17.bb | 41 |
2 files changed, 62 insertions, 0 deletions
diff --git a/recipes-extended/librdmacm/files/librdmacm-needs-libdl.patch b/recipes-extended/librdmacm/files/librdmacm-needs-libdl.patch new file mode 100644 index 0000000..bf15bea --- /dev/null +++ b/recipes-extended/librdmacm/files/librdmacm-needs-libdl.patch | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | Librdmacm links against libibverbs, and the current version of libibverbs | ||
| 2 | uses dlopen(), so librdmacm must also link against libdl. | ||
| 3 | |||
| 4 | Upstream-Status: Pending | ||
| 5 | |||
| 6 | Signed-off-by: Donn Seeley <donn.seeley@windriver.com> | ||
| 7 | --- | ||
| 8 | configure.in | 2 ++ | ||
| 9 | 1 file changed, 2 insertions(+) | ||
| 10 | |||
| 11 | --- a/configure.in | ||
| 12 | +++ b/configure.in | ||
| 13 | @@ -39,6 +39,8 @@ AC_CHECK_SIZEOF(long) | ||
| 14 | dnl Checks for libraries | ||
| 15 | AC_CHECK_LIB(pthread, pthread_mutex_init, [], | ||
| 16 | AC_MSG_ERROR([pthread_mutex_init() not found. librdmacm requires libpthread.])) | ||
| 17 | +AC_CHECK_LIB(dl, dlsym, [], | ||
| 18 | + AC_MSG_ERROR([dlsym() not found. librdmacm requires libdl.])) | ||
| 19 | if test "$disable_libcheck" != "yes"; then | ||
| 20 | AC_CHECK_LIB(ibverbs, ibv_get_device_list, [], | ||
| 21 | AC_MSG_ERROR([ibv_get_device_list() not found. librdmacm requires libibverbs.])) | ||
diff --git a/recipes-extended/librdmacm/librdmacm_1.0.17.bb b/recipes-extended/librdmacm/librdmacm_1.0.17.bb new file mode 100644 index 0000000..ba022b0 --- /dev/null +++ b/recipes-extended/librdmacm/librdmacm_1.0.17.bb | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | SUMMARY = "Userspace RDMA Connection Manager" | ||
| 2 | DESCRIPTION = "\ | ||
| 3 | User space RDMA 'socket' protocol and libraries for establising RDMA\ | ||
| 4 | communication. Includes both Infiniband specific and general RDMA\ | ||
| 5 | communication management libraries for unreliable datagram, reliable\ | ||
| 6 | connected, and multicast data transfers.\ | ||
| 7 | Also includes ACM (communication management assistant) service." | ||
| 8 | |||
| 9 | HOMEPAGE = "http://www.openfabrics.org/downloads/rdmacm/" | ||
| 10 | SECTION = "libs/devel" | ||
| 11 | |||
| 12 | LICENSE = "BSD" | ||
| 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=39cc3044d68741f9005da73e9b92db95" | ||
| 14 | |||
| 15 | DEPENDS = "libibverbs" | ||
| 16 | |||
| 17 | # Repo is at http://git.openfabrics.org/git?p=~shefty/librdmacm.git | ||
| 18 | SRC_URI = "http://www.openfabrics.org/downloads/rdmacm/${BPN}-${PV}.tar.gz \ | ||
| 19 | file://librdmacm-needs-libdl.patch" | ||
| 20 | |||
| 21 | SRC_URI[md5sum] = "da6fad887e9c24cb01b74b75f8449cb1" | ||
| 22 | SRC_URI[sha256sum] = "9381e1bf2c7079fc257b8eee74e731d3e7eec70e539bb4245084a7b05aeecb2a" | ||
| 23 | |||
| 24 | inherit autotools | ||
| 25 | |||
| 26 | # Allow plug-in symlinks. | ||
| 27 | INSANE_SKIP_${PN} += "dev-so" | ||
| 28 | |||
| 29 | PACKAGES += "${PN}-utils" | ||
| 30 | FILES_${PN} = "${libdir}/*.so.* ${libdir}/rsocket/*.so*" | ||
| 31 | FILES_${PN}-utils = "${bindir}" | ||
| 32 | FILES_${PN}-staticdev += "${libdir}/rsocket/librspreload.a" | ||
| 33 | FILES_${PN}-dbg += "${libdir}/rsocket/.debug" | ||
| 34 | |||
| 35 | PACKAGECONFIG ??= "" | ||
| 36 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind," | ||
| 37 | |||
| 38 | do_install_append() { | ||
| 39 | rm -f ${D}${libdir}/librdmacm.la | ||
| 40 | rm -f ${D}${libdir}/rsocket/librspreload.la | ||
| 41 | } | ||
