Remove libm in libdrm dependencies

Signed-off-by: Nicolas Caramelli <caramelli.devel@gmail.com>
This commit is contained in:
Nicolas Caramelli 2024-05-15 08:38:15 +02:00 committed by Simon Ser
parent 70c4f836cc
commit 7f20912b1b
2 changed files with 1 additions and 3 deletions

View file

@ -154,7 +154,6 @@ if not cc.has_function('clock_gettime', prefix : '#define _GNU_SOURCE\n#include
else else
dep_rt = [] dep_rt = []
endif 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+ # The header is not required on Linux, and is in fact deprecated in glibc 2.30+
if ['linux'].contains(host_machine.system()) if ['linux'].contains(host_machine.system())
@ -258,7 +257,7 @@ libdrm = library(
'drm', 'drm',
libdrm_files, libdrm_files,
c_args : libdrm_c_args, c_args : libdrm_c_args,
dependencies : [dep_valgrind, dep_rt, dep_m], dependencies : [dep_valgrind, dep_rt],
include_directories : inc_drm, include_directories : inc_drm,
install : true, install : true,
kwargs : libdrm_kw, kwargs : libdrm_kw,

View file

@ -60,7 +60,6 @@
#if HAVE_SYS_SYSCTL_H #if HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h> #include <sys/sysctl.h>
#endif #endif
#include <math.h>
#include <inttypes.h> #include <inttypes.h>
#if defined(__FreeBSD__) #if defined(__FreeBSD__)