From patchwork Thu Apr 10 08:27:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Or Gerlitz X-Patchwork-Id: 3960441 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 D272E9F336 for ; Thu, 10 Apr 2014 08:27:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DBDE220632 for ; Thu, 10 Apr 2014 08:27:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0585F20513 for ; Thu, 10 Apr 2014 08:27:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965170AbaDJI1V (ORCPT ); Thu, 10 Apr 2014 04:27:21 -0400 Received: from mailp.voltaire.com ([193.47.165.129]:54185 "EHLO mellanox.co.il" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S965097AbaDJI1S (ORCPT ); Thu, 10 Apr 2014 04:27:18 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from ogerlitz@mellanox.com) with SMTP; 10 Apr 2014 11:27:15 +0300 Received: from r-vnc04.mtr.labs.mlnx (r-vnc04.mtr.labs.mlnx [10.208.0.116]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id s3A8REWF016507; Thu, 10 Apr 2014 11:27:14 +0300 From: Or Gerlitz To: roland@kernel.org Cc: linux-rdma@vger.kernel.org, dledford@redhat.com, Matan Barak , Or Gerlitz Subject: [PATCH libibverbs] Fix usage of libnl3 Date: Thu, 10 Apr 2014 11:27:13 +0300 Message-Id: <1397118433-8836-1-git-send-email-ogerlitz@mellanox.com> X-Mailer: git-send-email 1.7.8.2 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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: Matan Barak When using libnl3, libibverbs should be linked with libnl3 and not the utilities. Signed-off-by: Matan Barak Signed-off-by: Or Gerlitz --- Makefile.am | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Makefile.am b/Makefile.am index add34b2..9293f86 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,7 +17,7 @@ if ! NO_RESOLVE_NEIGH src_libibverbs_la_SOURCES += src/neigh.c noinst_HEADERS = src/neigh.h endif -src_libibverbs_la_LDFLAGS = -version-info 1 -export-dynamic \ +src_libibverbs_la_LDFLAGS = -version-info 1 -export-dynamic $(LIBNL_LIBS)\ $(libibverbs_version_script) src_libibverbs_la_DEPENDENCIES = $(srcdir)/src/libibverbs.map @@ -28,31 +28,31 @@ bin_PROGRAMS = examples/ibv_devices examples/ibv_devinfo \ examples/ibv_dcini examples/ibv_dctgt examples_ibv_devices_SOURCES = examples/device_list.c -examples_ibv_devices_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_devices_LDADD = $(top_builddir)/src/libibverbs.la examples_ibv_devinfo_SOURCES = examples/devinfo.c -examples_ibv_devinfo_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_devinfo_LDADD = $(top_builddir)/src/libibverbs.la examples_ibv_rc_pingpong_SOURCES = examples/rc_pingpong.c examples/pingpong.c -examples_ibv_rc_pingpong_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_rc_pingpong_LDADD = $(top_builddir)/src/libibverbs.la examples_ibv_uc_pingpong_SOURCES = examples/uc_pingpong.c examples/pingpong.c -examples_ibv_uc_pingpong_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_uc_pingpong_LDADD = $(top_builddir)/src/libibverbs.la examples_ibv_ud_pingpong_SOURCES = examples/ud_pingpong.c examples/pingpong.c -examples_ibv_ud_pingpong_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_ud_pingpong_LDADD = $(top_builddir)/src/libibverbs.la examples_ibv_srq_pingpong_SOURCES = examples/srq_pingpong.c examples/pingpong.c -examples_ibv_srq_pingpong_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_srq_pingpong_LDADD = $(top_builddir)/src/libibverbs.la examples_ibv_shared_mr_SOURCES = examples/shared_mr.c -examples_ibv_shared_mr_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_shared_mr_LDADD = $(top_builddir)/src/libibverbs.la examples_ibv_asyncwatch_SOURCES = examples/asyncwatch.c -examples_ibv_asyncwatch_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_asyncwatch_LDADD = $(top_builddir)/src/libibverbs.la examples_ibv_xsrq_pingpong_SOURCES = examples/xsrq_pingpong.c examples/pingpong.c -examples_ibv_xsrq_pingpong_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_xsrq_pingpong_LDADD = $(top_builddir)/src/libibverbs.la examples_ibv_cc_pingpong_SOURCES = examples/cc_pingpong.c -examples_ibv_cc_pingpong_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_cc_pingpong_LDADD = $(top_builddir)/src/libibverbs.la examples_ibv_task_pingpong_SOURCES = examples/task_pingpong.c -examples_ibv_task_pingpong_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_task_pingpong_LDADD = $(top_builddir)/src/libibverbs.la examples_ibv_dcini_SOURCES = examples/dcini.c -examples_ibv_dcini_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_dcini_LDADD = $(top_builddir)/src/libibverbs.la examples_ibv_dctgt_SOURCES = examples/dctgt.c examples/pingpong.c examples/dc.h -examples_ibv_dctgt_LDADD = $(top_builddir)/src/libibverbs.la $(LIBNL_LIBS) +examples_ibv_dctgt_LDADD = $(top_builddir)/src/libibverbs.la # Enable ibverbs library test