mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-21 22:50:24 +00:00
do_compile fails with: cc1: error: include location "/usr/include/libnl3" is unsafe for cross-compilation [-Werror=poison-system-directories] The kernel tools Makefile gets the libnl flags from pkg-config. The recipe does not inherit pkgconfig, so there is no PKG_CONFIG_SYSROOT_DIR and the host pkg-config answers with the host include path. Drop the manual CFLAGS entry, pkg-config now gives the same path. Signed-off-by: Alper Ak <alperyasinak1@gmail.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>