vpp cross compilation while being integrated into buildroot project fails with the following error:
ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include
it's appeared to have oldincludedir exporting for non-gnu toolchain enabled and so it producing this inclusion during configure process.
the problem seems to be quite common once the buildroot project added option for paranoid unsafe path checking as described here:
>> >> This error appear if one of the following paths is used during the
>> >> cross-compilation:
>> >> "/lib"
>> >> "/usr/include"
>> >> "/usr/lib"
>> >> "/usr/local/include"
>> >> "/usr/local/lib"
how to exclude oldincludedir generation inside configure or how to alter it's value instead of
oldincludedir='/usr/include'
to be configured similar to the includedir variable:
includedir='${prefix}/include'
?