From 063c4c5fa0658e53d2187036532d1273acf5d645 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Thu, 9 Jan 2020 13:59:15 +0100 Subject: [PATCH] build: fix libm detection in meson 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 Acked-by: Bruce Richardson --- config/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/meson.build b/config/meson.build index 01911ecf94..28a57f56fc 100644 --- a/config/meson.build +++ b/config/meson.build @@ -115,7 +115,7 @@ add_project_link_arguments('-pthread', language: 'c') dpdk_extra_ldflags += '-pthread' # 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() # some libs depend on maths lib add_project_link_arguments('-lm', language: 'c') dpdk_extra_ldflags += '-lm' -- 2.20.1