From patchwork Mon Dec 15 19:05:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: john.fleck@intel.com X-Patchwork-Id: 5496341 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 52CF29F30B for ; Mon, 15 Dec 2014 19:06:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 81175200ED for ; Mon, 15 Dec 2014 19:06:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6EF1C200CA for ; Mon, 15 Dec 2014 19:06:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750911AbaLOTGR (ORCPT ); Mon, 15 Dec 2014 14:06:17 -0500 Received: from mga11.intel.com ([192.55.52.93]:50983 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836AbaLOTGR (ORCPT ); Mon, 15 Dec 2014 14:06:17 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 15 Dec 2014 11:06:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,581,1413270000"; d="scan'208";a="637905338" Received: from phlsvsds.ph.intel.com ([10.228.195.38]) by fmsmga001.fm.intel.com with ESMTP; 15 Dec 2014 11:06:08 -0800 Received: from phlsvsds.ph.intel.com (localhost.localdomain [127.0.0.1]) by phlsvsds.ph.intel.com (8.13.8/8.13.8) with ESMTP id sBFJ67Oo005420; Mon, 15 Dec 2014 14:06:08 -0500 Received: (from jfleck@localhost) by phlsvsds.ph.intel.com (8.13.8/8.13.8/Submit) id sBFJ675w005417; Mon, 15 Dec 2014 14:06:07 -0500 X-Authentication-Warning: phlsvsds.ph.intel.com: jfleck set sender to john.fleck@intel.com using -f From: john.fleck@intel.com To: sean.hefty@intel.com Cc: linux-rdma@vger.kernel.org, John Fleck Subject: [PATCH 1/1] ibacm: Search the pthread and dynamic linker/loader library when linking. Date: Mon, 15 Dec 2014 14:05:48 -0500 Message-Id: <1418670348-5391-1-git-send-email-john.fleck@intel.com> X-Mailer: git-send-email 1.7.1 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: John Fleck When building with RHEL 7, there is an undefined reference to the pthread and the dynamic linker/loader libraries. Signed-off-by: John Fleck --- 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