summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-05-16 19:25:22 +0000
committerSam James <sam@gentoo.org>2021-05-16 19:35:01 +0000
commitb9357baeb944afaef133823b60afea51be058afb (patch)
tree35b954d7f86cb2bbe253c7f6e3d75251c54074aa /sys-fabric
parentsys-fabric/ibacm: fix pthread linkage (diff)
downloadgentoo-b9357baeb944afaef133823b60afea51be058afb.tar.gz
gentoo-b9357baeb944afaef133823b60afea51be058afb.tar.bz2
gentoo-b9357baeb944afaef133823b60afea51be058afb.zip
sys-fabric/ibacm: fix pthread linkage
Closes: https://bugs.gentoo.org/611778 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-fabric')
-rw-r--r--sys-fabric/ibacm/files/ibacm-1.0.8-fix-pthread-linkage.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-fabric/ibacm/files/ibacm-1.0.8-fix-pthread-linkage.patch b/sys-fabric/ibacm/files/ibacm-1.0.8-fix-pthread-linkage.patch
new file mode 100644
index 000000000000..8a9e5b5f03e6
--- /dev/null
+++ b/sys-fabric/ibacm/files/ibacm-1.0.8-fix-pthread-linkage.patch
@@ -0,0 +1,20 @@
+https://github.com/ofiwg/ibacm/commit/7a781f6d554532995181b9efbe445599b25c271a.patch
+https://bugs.gentoo.org/611778
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,12 +1,13 @@
+ AM_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/linux
+
+ AM_CFLAGS = -g -Wall -D_GNU_SOURCE -DSYSCONFDIR=\"$(sysconfdir)\" -DBINDIR=\"$(bindir)\" -DRDMADIR=\"@rdmadir@\"
+-
++AM_LDFLAGS = -lpthread -ldl
+ bin_PROGRAMS = util/ib_acme
+ sbin_PROGRAMS = svc/ibacm
+ svc_ibacm_SOURCES = src/acm.c
+ util_ib_acme_SOURCES = src/acme.c linux/acme_linux.c src/libacm.c linux/libacm_linux.c src/parse.c
+ svc_ibacm_CFLAGS = $(AM_CFLAGS)
++svc_ibacm_LDFLAGS = -rdynamic $(AM_LDFLAGS)
+ util_ib_acme_CFLAGS = $(AM_CFLAGS)
+
+ ibacmincludedir = $(includedir)/infiniband