summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Caramelli <caramelli.devel@gmail.com>2024-05-15 08:38:15 +0200
committerSimon Ser <contact@emersion.fr>2024-06-02 22:09:56 +0000
commit7f20912b1be52ec65bc917dcd27515e905f9f567 (patch)
tree83f6029311e59eacfb8b1e5e5c97d06f7de8fdff
parent70c4f836ccffa972978bc58c9cc0434f85984be8 (diff)
Remove libm in libdrm dependencies
Signed-off-by: Nicolas Caramelli <caramelli.devel@gmail.com>
-rw-r--r--meson.build3
-rw-r--r--xf86drm.c1
2 files changed, 1 insertions, 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 <sys/sysctl.h>
#endif
-#include <math.h>
#include <inttypes.h>
#if defined(__FreeBSD__)