[OE-core] [PATCH 2/2] libx11: fix nativesdk build on older distros

Daniel Stone daniel at fooishbar.org
Tue Sep 25 23:11:58 UTC 2012


Hi,

On 26 September 2012 05:09, Burton, Ross <ross.burton at intel.com> wrote:
> On 25 September 2012 19:55, McClintock Matthew-B29882
> <B29882 at freescale.com> wrote:
>>> I read somewhere (very informative - I know - but I've forgot where)
>>> that you are not supposed to include config.h for CC_FOR_BUILD
>>> targets? I'm not expert and just double checking on this bit as the
>>> correct solution.
>>
>> Found it: http://sources.redhat.com/autobook/autobook/autobook_270.html
>
> That is a very good point, hadn't thought of that (and I recommend
> that book to everyone, clearly I should re-read it).
>
> The best fix is to just #define _GNU_SOURCE at the top of makekeys
> then, and push that upstream (mail patch to xorg-devel at lists.x.org).

Actually, it isn't, as that breaks non-glibc badly.  glibc takes
_GNU_SOURCE to mean 'please add useful GNU extensions to this POSIX
wasteland', whereas BSD and/or Solaris take it to mean 'please make
this only GNU and don't use any other extensions at all'.  So we have
to do whatever AC_USE_SYSTEM_EXTENSIONS does, because that really is
the only thing that actually works.

Cheers,
Daniel




More information about the Openembedded-core mailing list