-
This is the patch from https://bugs.freedesktop.org/show_bug.cgi?id=6669 by Pierre Ossman, reworked for master. Avoid using LIBS (which are for host, but we don't need) and rewrite makekeys slightly to avoid needing to include any X headers, which avoids potentially having -I with host paths in CFLAGS, which can cause standard headers e.g. stdio.h for the host to also be used, which can break things...
a121b7b0