From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DC906A051C; Tue, 11 Feb 2020 02:20:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5DDDD1BF87; Tue, 11 Feb 2020 02:20:03 +0100 (CET) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by dpdk.org (Postfix) with ESMTP id 43DBB14583 for ; Tue, 11 Feb 2020 02:20:00 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 2031B69B; Mon, 10 Feb 2020 20:19:57 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 10 Feb 2020 20:19:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=ckNG5nMIRa O6huxGMj0rvHa7ZwGiW6nql7EhHRIjafk=; b=VX/F5DIE9KN4BY2E6n4Mukq3ow G3xGyk2WLLoyma+Es6ivt6k8rfihOM3qIe5fcEIcsdA876ykQKBTPzdaDcISu4BN 2Jj0tnOAom7kIXAMiJAatTFwCC8XZxzHnWFvY/K/H6v4KX1q6fGTlyJChvYrvfXv EfvITq3m0X2csu1Yw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=ckNG5nMIRaO6huxGMj0rvHa7ZwGiW6nql7EhHRIjafk=; b=i7zPCd6l 2AtDwGF4C2VMUnRpvrIexd4Xqt/KeHNSSYP+LYCYGYEp+SzZG8H9mTU641JOYdTl D4++vgoHFbR85riGVNrUowccIbV/cr4ySnZC/MExfIHUJUDYouod3Aw3WPLcMASb z0NCQv8ZoBYDcrdwkOllO5BWgjF2iQkOfmyPkRqJLRd7NLzsk7kcRxqZerx8z2V5 PNZ/tBmD+/RCBk75c3KN5hHmKw905hbgQfCdwdJGNSVjmJTgbVh+Vc+kPYvbM11l aR/cj9HWMBYJiTABOnkQ8K0pkCy7E2Dn9ytA7b4MYDfzBdP+LEgPEi8T0qXom+Ji kl6AMImJ2+idfQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedriedvgdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshes mhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id F166B328005D; Mon, 10 Feb 2020 20:19:55 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: bruce.richardson@intel.com Date: Tue, 11 Feb 2020 02:19:37 +0100 Message-Id: <20200211011942.1569573-1-thomas@monjalon.net> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200127154402.4008069-1-thomas@monjalon.net> References: <20200127154402.4008069-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 0/5] mlx ibverbs linking in meson X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This is the follow-up of the feature I added one year ago: static linkage of libibverbs in mlx PMDs. The first implementation was focused on "make". This second round does the same with "meson". With the meson option ibverbs_link, only the mode "shared" was working correctly. This patchset adds the mode "static" and fixes the mode "dlopen". changes in v3: - get cflags with pkg-config invocation - drop addition of global variable hidden_deps - remove overlinking in dlopen mode changes in v2: - split mlx patch for normal addition and workarounds - fix ldflags for ibverbs installed in a standard directory - fix libs order leading to undefined references - add doc for hidden_deps - improve explanations in commit logs Thomas Monjalon (5): net/mlx: add static ibverbs linkage with meson buildtools: get static mlx dependencies for meson net/mlx: workaround static linkage with meson net/mlx: rename meson variable for dlopen option net/mlx: fix overlinking with meson and glue dlopen buildtools/meson.build | 2 ++ buildtools/options-ibverbs-static.sh | 10 ++++++++-- doc/guides/nics/mlx4.rst | 4 ++++ doc/guides/nics/mlx5.rst | 4 ++++ drivers/common/mlx5/meson.build | 27 +++++++++++++++++++------- drivers/net/mlx4/meson.build | 29 ++++++++++++++++++++-------- meson_options.txt | 4 ++-- 7 files changed, 61 insertions(+), 19 deletions(-) -- 2.25.0