From: john.fleck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
To: sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
John Fleck <john.fleck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Subject: [PATCH 1/1] ibacm: Search the pthread and dynamic linker/loader library when linking.
Date: Mon, 15 Dec 2014 14:05:48 -0500 [thread overview]
Message-ID: <1418670348-5391-1-git-send-email-john.fleck@intel.com> (raw)
From: John Fleck <john.fleck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
When building with RHEL 7, there is an undefined reference to the pthread
and the dynamic linker/loader libraries.
Signed-off-by: John Fleck <john.fleck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
Makefile.am | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index c71ed7c..73b1a31 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,7 @@
AM_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/linux -I$(srcdir)/src
AM_CFLAGS = -g -Wall -D_GNU_SOURCE
+AM_LDFLAGS = -lpthread -ldl
if HAVE_LD_VERSION_SCRIPT
libibacmp_version_script = -Wl,--version-script=$(srcdir)/prov/acmp/src/libibacmp.map
@@ -13,14 +14,14 @@ sbin_PROGRAMS = svc/ibacm
svc_ibacm_SOURCES = src/acm.c src/acm_util.c
util_ib_acme_SOURCES = src/acme.c src/libacm.c linux/libacm_linux.c src/parse.c
svc_ibacm_CFLAGS = $(AM_CFLAGS)
-svc_ibacm_LDFLAGS = -rdynamic
+svc_ibacm_LDFLAGS = -rdynamic $(AM_LDFLAGS)
util_ib_acme_CFLAGS = $(AM_CFLAGS) -DACME_PRINTS
pkglib_LTLIBRARIES = lib/libibacmp.la
lib_libibacmp_la_CFLAGS = $(AM_CFLAGS)
lib_libibacmp_la_SOURCES = prov/acmp/src/acmp.c
lib_libibacmp_la_LDFLAGS = -version-info 1 -export-dynamic \
- $(libibacmp_version_script)
+ $(libibacmp_version_script) $(AM_LDFLAGS)
lib_libibacmp_la_DEPENDENCIES = $(srcdir)/prov/acmp/src/libibacmp.map
ibacmincludedir = $(includedir)/infiniband
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2014-12-15 19:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-15 19:05 john.fleck-ral2JQCrhuEAvxtiuMwx3w [this message]
[not found] ` <1418670348-5391-1-git-send-email-john.fleck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-12-15 20:06 ` [PATCH 1/1] ibacm: Search the pthread and dynamic linker/loader library when linking Hefty, Sean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1418670348-5391-1-git-send-email-john.fleck@intel.com \
--to=john.fleck-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox