apache2 build fails in yocto - “/usr/local/include” is unsafe for cross-compilation [-Wpoison-system-directories]
问题 I was trying to build apache2 on yocto. But I was getting below errors. ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. Rerun configure task after fixing this. Some googling led me to https://lists.yoctoproject.org/pipermail/yocto/2012-March/005125.html So I looked into conf.log and find out those lines: cc1: warning: include location "/usr/local/include" is unsafe for cross-compilation [-Wpoison-system