From d0cf1595af15d996f604fa0dd70a1c77be37fd2f Mon Sep 17 00:00:00 2001 From: Marco Felsch Date: Mon, 30 Aug 2021 08:36:07 +0200 Subject: [PATCH] meson: Fix host leakage Commit d2d2f32 ("Add libdrm include path to cflags") fixed the build for FreeBSD but introduced host leakage which breaks cross-compile builds. To fix this we need to specifying the include path by unsing '-I=' so the compiler searches within the specified sysroot dir. Signed-off-by: Marco Felsch --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 3585117..9964892 100644 --- a/meson.build +++ b/meson.build @@ -36,7 +36,7 @@ endif libdrm_include_dir = dependency('libdrm').get_variable(pkgconfig: 'includedir') -c_args += '-I' + libdrm_include_dir +c_args += '-I=' + libdrm_include_dir add_project_arguments(c_args, language: 'c')