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
parent
b320723049
commit
d0cf1595af
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue