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 3B3A2A046B for ; Thu, 9 Jan 2020 13:59:37 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 308521DD45; Thu, 9 Jan 2020 13:59:37 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id D01D31DD45 for ; Thu, 9 Jan 2020 13:59:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578574775; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ulVWVi+k9KOJdQIUTUoTyFdH2u6TsISViIFaqkZvTb4=; b=VOOQUtW+RjEjBBJaH5XA26t4xqnOg/cwXfF5lpTibipQIHm/Gl1fhD0rlcDLHoZwQhDh3e 3xHpMVullM/rTfnBi+egtoNlMgTUmLzxe0yWQcUDDB2BFnFn/a52BxByIvjS6U8ihwZtps hhwlTBkaSqdHzU9d4Q+OKNyDTmIUakk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-32-G23fbalYNFCc5U-QSegzqw-1; Thu, 09 Jan 2020 07:59:31 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B28F08BD477; Thu, 9 Jan 2020 12:59:29 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-204-19.brq.redhat.com [10.40.204.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5078A5E7B0; Thu, 9 Jan 2020 12:59:26 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: bruce.richardson@intel.com, bluca@debian.org, aconole@redhat.com, stable@dpdk.org, Thomas Monjalon , Ranjit Menon , Jeff Shaw , Pallavi Kadam , Harini Ramakrishnan , Anand Rawat Date: Thu, 9 Jan 2020 13:59:15 +0100 Message-Id: <20200109125916.32073-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: G23fbalYNFCc5U-QSegzqw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] [PATCH 1/2] build: fix libm detection in meson X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Using version 0.47.1, meson is unable to find the math library in Travis for the 32bits job. Quite surprisingly, this problem is not seen with the 64bits jobs. Switching to 0.48.0, the problem disappears. But we should pass 'm' to find_library instead of 'libm' anyway. Fixes: 98edcbb5ab2f ("eal/windows: introduce Windows support") Cc: stable@dpdk.org Signed-off-by: David Marchand --- config/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/meson.build b/config/meson.build index 01911ecf9..28a57f56f 100644 --- a/config/meson.build +++ b/config/meson.build @@ -115,7 +115,7 @@ add_project_link_arguments('-pthread', language: 'c') dpdk_extra_ldflags +=3D '-pthread' =20 # on some OS, maths functions are in a separate library -if cc.find_library('libm', required : false).found() +if cc.find_library('m', required : false).found() =09# some libs depend on maths lib =09add_project_link_arguments('-lm', language: 'c') =09dpdk_extra_ldflags +=3D '-lm' --=20 2.23.0