From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yongseok Koh Subject: Re: [PATCH] mlx: fix warnings for unused compiler arguments Date: Thu, 29 Mar 2018 20:53:37 +0000 Message-ID: <213D6C3B-866A-4F73-997E-07873E8AB576@mellanox.com> References: <20180329133620.92710-1-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: Adrien Mazarguil , =?iso-8859-1?Q?N=E9lio_Laranjeiro?= , "dev@dpdk.org" To: Bruce Richardson Return-path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20081.outbound.protection.outlook.com [40.107.2.81]) by dpdk.org (Postfix) with ESMTP id AFC5C5F22 for ; Thu, 29 Mar 2018 22:53:39 +0200 (CEST) In-Reply-To: <20180329133620.92710-1-bruce.richardson@intel.com> Content-Language: en-US Content-ID: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > On Mar 29, 2018, at 6:36 AM, Bruce Richardson wrote: >=20 > When linking the mlx glue code libraries using CC, the linker arguments i= n > LDFLAGS are not prefixed with -Wl. [The EXTRA_LDFLAGS are though.] This > leads to warning messages on build: >=20 > clang-5.0: warning: argument unused during compilation: '-e xport-dynamic= ' >=20 > Fix this by checking for $LINK_USING_CC in the Makefiles and prefixing th= e > LDFLAGS appropriately if set. >=20 > Fixes: 27cea11686ff ("net/mlx4: spawn rdma-core dependency plug-in") > Fixes: 59b91bec12c6 ("net/mlx5: spawn rdma-core dependency plug-in") >=20 > Signed-off-by: Bruce Richardson > --- Acked-by: Yongseok Koh =20 Thanks=