From 7f20912b1be52ec65bc917dcd27515e905f9f567 Mon Sep 17 00:00:00 2001 From: Nicolas Caramelli Date: Wed, 15 May 2024 08:38:15 +0200 Subject: Remove libm in libdrm dependencies Signed-off-by: Nicolas Caramelli --- meson.build | 3 +-- xf86drm.c | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/meson.build b/meson.build index f0839578..6d8121ec 100644 --- a/meson.build +++ b/meson.build @@ -154,7 +154,6 @@ if not cc.has_function('clock_gettime', prefix : '#define _GNU_SOURCE\n#include else dep_rt = [] endif -dep_m = cc.find_library('m', required : false) # The header is not required on Linux, and is in fact deprecated in glibc 2.30+ if ['linux'].contains(host_machine.system()) @@ -258,7 +257,7 @@ libdrm = library( 'drm', libdrm_files, c_args : libdrm_c_args, - dependencies : [dep_valgrind, dep_rt, dep_m], + dependencies : [dep_valgrind, dep_rt], include_directories : inc_drm, install : true, kwargs : libdrm_kw, diff --git a/xf86drm.c b/xf86drm.c index 1c871106..eff4150d 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -60,7 +60,6 @@ #if HAVE_SYS_SYSCTL_H #include #endif -#include #include #if defined(__FreeBSD__) -- cgit v1.2.3