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 <m.felsch@pengutronix.de>
fb-api-v3
Marco Felsch 2021-08-30 08:36:07 +02:00 committed by Andri Yngvason
parent b320723049
commit d0cf1595af
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ endif
libdrm_include_dir = dependency('libdrm').get_variable(pkgconfig: 'includedir') 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') add_project_arguments(c_args, language: 'c')