--disable-specs \
--without-perl
-# src/util/makekeys is executed at build time to generate ks_tables.h, so
-# it should get compiled for the host. The libX11 makefile unfortunately
-# doesn't have X11_CFLAGS_FOR_BUILD so this doesn't work. For buildroot,
-# we know the X11 includes are in $(HOST_DIR)/include, which are already
-# in the CFLAGS_FOR_BUILD, so we can just remove the X11_CFLAGS
-define XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
- $(SED) '/X11_CFLAGS/d' $(@D)/src/util/Makefile*
-endef
-
-XLIB_LIBX11_POST_PATCH_HOOKS += XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
-HOST_XLIB_LIBX11_POST_PATCH_HOOKS += XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
-
$(eval $(autotools-package))
$(eval $(host-autotools-package))