[Buildroot] [PATCH 1/2] package/Makefile.in should grab HOST_DIR headers using -isystem instead of -I.

Khem Raj raj.khem at gmail.com
Fri Jul 29 08:16:24 UTC 2016


On Fri, Jul 29, 2016 at 12:32 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Hello,
>
> On Thu, 28 Jul 2016 15:04:18 -0700, Khem Raj wrote:
>
>> >> -HOST_CPPFLAGS  = -I$(HOST_DIR)/usr/include
>> >> +HOST_CPPFLAGS  = -isystem $(HOST_DIR)/usr/include
>>
>> This is quite intrusive change. avoid -isystems since it interferes with the
>> default include ordering of gcc and will cause compile failure since it wont
>> be able to find headers in some cases. So many packages will fail to build.
>> especially gcc-6.x will hit hard
>
> Can you give some more details? Did you look at the original commit log
> for this change? It pointed out some real problems when using -I, which
> in theory should be resolved by using -isystem.

see
http://cgit.openembedded.org/cgit.cgi/openembedded-core/commit/?id=0a6e162c47017ecf51b466218fb549e0e199f4c4

If packages use include_next they will have problems.


More information about the buildroot mailing list